brotkrueml / schema

TYPO3 extension providing an API and view helpers for schema.org markup

Home Page:https://extensions.typo3.org/extension/schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduce a type factory

brotkrueml opened this issue · comments

With the possibility to register additional types (#38) it would be cool to create a type by name to separate the implementation from the schema type. So no code must be changed when overriding a type model implementation.

  • A TypeFactory is available which takes the type name and returns the according model object.
  • Throughout the code the type models are using the factory to create a model object.
  • The documentation is adjusted.
  • The change log is adjusted.