Example #1
0
 /**
  * {@inheritdoc}
  */
 public function init()
 {
     parent::init();
     foreach ($this->config as $routeName => $routeConfig) {
         if (is_numeric($routeName)) {
             $routeName = Arr::get($routeConfig, 'name', uniqid());
         }
         $this->set($routeName, Arr::get($routeConfig, 'uri'), Arr::get($routeConfig, 'regex'), Arr::get($routeConfig, 'force', false), Arr::get($routeConfig, 'defaults', []));
     }
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function init()
 {
     parent::init();
     $this->cacheHandler = new phpFastCache($this->storage, ['path' => $this->path, 'securityKey' => $this->securityKey, 'fallback' => $this->fallback, 'htaccess' => $this->htaccess]);
 }
Example #3
0
File: Twig.php Project: tourze/twig
 /**
  * {@inheritdoc}
  */
 public function init()
 {
     parent::init();
     $this->loader = TwigBase::createLoader($this->loaderOptions);
     $this->environment = TwigBase::createEnvironment($this->loader, $this->environmentOptions);
 }
Example #4
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->start();
 }
Example #5
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     // 加载会话消息
     $this->loadMessages();
 }