/** * Execute certain hook handle * * @return void */ public function executeHookHandler() { if (!$this->areProxiesExist()) { // Create the proxies folder \Includes\Utils\FileManager::mkdirRecursive(LC_DIR_CACHE_PROXY); // Create model proxy classes (second step of cache generation) \Includes\Decorator\Plugin\Doctrine\Utils\EntityManager::generateProxies(); } }
/** * Alias * * @param string $class Class name OPTIONAL * * @return array|\Doctrine\ORM\Mapping\ClassMetadata */ protected function getMetadata($class = null) { return \Includes\Decorator\Plugin\Doctrine\Utils\EntityManager::getAllMetadata($class); }
/** * Execute certain hook handle * * @return void */ public function executeHookHandler() { // Create model proxy classes (first step of cache generation) \Includes\Decorator\Plugin\Doctrine\Utils\EntityManager::generateModels(); }
/** * Save current metadata * * @return void */ protected function saveMetadata() { \Includes\Decorator\Utils\CacheInfo::set('metadata', \Includes\Decorator\Plugin\Doctrine\Utils\EntityManager::getAllMetadata()); }