/** * * @param type $request * @throws Exception */ public function __construct($request) { parent::__construct($request); $this->parseManifest(); if (is_null($this->repository)) { throw new Exception('Repository unspecified'); } $repository = $this->repository; $repository::setRelationMap($this->relationMap); $repository::setObjectName($this->objectName); $repository::setObjectClass($this->objectClass); if (!empty($this->secondaryObjectClass)) { $repository::setSecondaryObjectClass($this->secondaryObjectClass); } $rc = new \ReflectionClass(get_class($this)); $moduleName = Informations::getModuleFromPath($rc->getFileName()); static::$moduleShortName = Informations::getModuleSlugName($moduleName); $this->objectBaseUrl = '/' . static::$moduleShortName . '/' . $this->objectName; }
/** * * @param type $request */ public function __construct($request) { parent::__construct($request); }