public function __construct($app) { parent::__construct($app); if (!$app['config']['OidConnect']) { throw new \InvalidArgumentException("OidConnect config file [app/config/OidConnect.php] not found."); } $this->fedKeyModel = $app['config']['OidConnect.dbfedkeymodel'] ?: 'OidConnect\\Models\\FedKeyModel'; $this->socialUser = $app['config']['OidConnect.socialuser'] ?: 'OidConnect\\UserManagement\\SocialUser'; }
/** * Neo4j constructor * * @param string $configPath Configuration path * @param ContainerInterface $container Container instance */ public function __construct($configPath = null, ContainerInterface $container = null) { if (is_null($container)) { $container = new Container($configPath); } parent::__construct($container); $this->default = $this->app['config']->get('database.neo4j.default'); $this->profiles = $this->app['config']->get('database.neo4j.profiles'); $this->events = $this->app['events']; }
/** * Create new instance of ConfManager class. * * @param \Illuminate\Foundation\Application $driver */ public function __construct($driver) { parent::__construct($driver); }
public function __construct($app) { parent::__construct($app); $this->dbConnection = $this->app['db']->connection(); $this->auditLogger = new DatabaseAuditLogger($this->_cfg('audit_log_table'), $this->dbConnection); }
/** * @param \Illuminate\Foundation\Application $app * @param string $name * @param array $config */ public function __construct($app, $name, $config) { parent::__construct($app); $this->config = $config; $this->name = $name; }
/** * Init CASAuthentication * * @param $config * @param AuthManager $auth */ public function __construct($app) { parent::__construct($app); $this->config = $this->app['config']['services.cas']; $this->initialize(); }