コード例 #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
ファイル: SingletonClassTest.php プロジェクト: c15k0/psfs
 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
ファイル: DocumentorService.php プロジェクト: c15k0/psfs
 /**
  * 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;
 }