__construct() public method

Assigns rootDir and debug to the pimple container. Also replaces the normal resolver with a PimpleAware Resolver.
public __construct ( string $rootDir, boolean $debug = false, array $parameters = [] )
$rootDir string
$debug boolean
$parameters array
Example #1
0
 public function __construct($rootDir, $env, $debug = false)
 {
     parent::__construct($rootDir, $debug, ['env' => $env]);
     $this->init($env, $debug);
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function __construct($rootDir, $debug = false, array $parameters = [])
 {
     $parameters += ['config.cache_dir' => $rootDir . '/app/cache/config'];
     parent::__construct($rootDir, $debug, $parameters);
     $this->initialize();
 }
Example #3
0
 public function __construct($rootDir, $debug = true, array $parameters = array())
 {
     $parameters += array('config.cache_dir' => $rootDir . '/app/cache/config');
     parent::__construct($rootDir, $debug, $parameters);
 }