Пример #1
0
 /**
  * Constructor.
  *
  * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
  */
 public function __construct(ContainerInterface $container)
 {
     parent::__construct($container);
     $dossier = $this->container->getParameter('pi_app_admin.cache_dir.indexation');
     if (\Sfynx\ToolBundle\Util\PiFileManager::mkdirr($dossier, 0777)) {
         $this->_indexPath = $dossier . self::NAME_INDEX;
     } else {
         throw new \InvalidArgumentException("The Indexation cache repository is not created correctly");
     }
 }
Пример #2
0
 /**
  * Constructor.
  *
  * @param ContainerInterface $container The service container
  */
 public function __construct(ContainerInterface $container)
 {
     parent::__construct($container);
 }
Пример #3
0
 /**
  * Constructor.
  *
  * @param ContainerInterface $container The service container
  */
 public function __construct(LoggerInterface $logger, ContainerInterface $container)
 {
     $this->logger = $logger;
     parent::__construct($container);
 }