Exemplo n.º 1
0
 /**
  * Init helpers
  *
  * @param Application $application An Application instance
  * @throws \PreCommit\Console\Exception
  * @api
  */
 public function setApplication(Application $application = null)
 {
     parent::setApplication($application);
     if (!$this->getHelperSet()) {
         throw new Exception('Helper set is not set.');
     }
     $this->getHelperSet()->set(new ClearCacheHelper());
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function setApplication(Application $application = null)
 {
     parent::setApplication($application);
     $this->getHelperSet()->set(new Helper\ConfigHelper());
     $this->getHelperSet()->set(new Helper\Config\SetHelper());
     $this->getHelperSet()->set(new Helper\Config\WriterHelper());
     $this->getHelperSet()->set(new Helper\ClearCacheHelper());
     $this->getHelperSet()->set(new Helper\Config\FileFilterHelper());
 }