示例#1
0
文件: Dispatcher.php 项目: psfs/Core
 /**
  * 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');
 }
示例#2
0
 public function init()
 {
     parent::init();
 }
示例#3
0
文件: Controller.php 项目: c15k0/psfs
 public function init()
 {
     parent::init();
     $this->setDomain($this->domain)->setTemplatePath(Config::getInstance()->getTemplatePath());
 }
示例#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;
 }