Example #1
0
 /**
  * Initializer method
  */
 public function init()
 {
     Logger::log('Dispatcher init');
     parent::init();
     $this->initiateStats();
     $this->setLocale();
     $this->bindWarningAsExceptions();
     $this->actualUri = $this->parser->getServer("REQUEST_URI");
     Logger::log('End dispatcher init');
 }
Example #2
0
 public function init()
 {
     parent::init();
 }
Example #3
0
 public function init()
 {
     parent::init();
     $this->setDomain($this->domain)->setTemplatePath(Config::getInstance()->getTemplatePath());
 }
Example #4
0
 /**
  * Extract all the properties from Dto class
  *
  * @param string $class
  *
  * @return array
  */
 protected function extractDtoProperties($class)
 {
     $properties = [];
     $reflector = new \ReflectionClass($class);
     if ($reflector->isSubclassOf(self::DTO_INTERFACE)) {
         Singleton::extractProperties($reflector, $properties, \ReflectionMethod::IS_PUBLIC);
     }
     return $properties;
 }