Reflection and MVC mapping tools for Neos Flow
This package has been implemented to be used in Milly.CrudForms but might also be of use for others.
Determine what Model, Repository and Controller classes belong together. Mapping is done based on the Flow conventions and can be overruled by defining the constant ENTITY_CLASSNAME in either a Repository or a Controller class.
const ENTITY_CLASSNAME = ModelToBeMapped::class;
public functions
@param object|string $model An object (class instance) or a string (class name) of a domain model
@return string
@param object|string $model An object (class instance) or a string (class name) of a domain model
@return string
- getModelClass
- getRepositoryClass
- getControllerClass
@param string $className a Controller, Model or Repository class name
@return string class
- getPackageName
- getControllerName
- getModelName
@param string $className a Controller, Model or Repository class name
@return string just the name of the package, controller or model without the class path
to convert a class of type Model, Repository or Controller into another of these types
@param string $className a Controller, Model or Repository class name
@param string $type one of the ClassMappingService::TYPE_* constants
@return string className of type ClassMappingService::TYPE_*
@param $className
@param $propertyName
@return string
@param $className
@param $relationName
@return string
@param $className
@param $relationName
@return bool
@param object|string $class An object (class instance) or a string (class name)
@param $propertyName
@return bool
get the real class name, from a doctrine proxy class
@param $className
@return string