__construct() public method

public __construct ( ResourceManager $config = null )
$config ResourceManager
Beispiel #1
0
 /**
  * The constructor requires a resource manager object to perform checks against.
  * This should ideally be typehinted to Bolt\Configuration\ResourceManager.
  *
  * @param ResourceManager $config
  */
 public function __construct($config = null)
 {
     parent::__construct($config);
     $this->addCheck('publicAssets');
     $this->addCheck('database', true);
     $this->addCheck('config', true);
 }
Beispiel #2
0
 /**
  * Constructor.
  *
  * @param Controller\Exception $exceptionController
  * @param Config               $config
  * @param ResourceManager      $resourceManager
  */
 public function __construct(Controller\Exception $exceptionController, Config $config, ResourceManager $resourceManager)
 {
     parent::__construct($resourceManager);
     $this->exceptionController = $exceptionController;
     $this->configManager = $config;
     $this->resourceManager = $resourceManager;
 }