/** * 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); }
/** * 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; }