Esempio n. 1
0
 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';
 }
Esempio n. 2
0
 /**
  * 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'];
 }
Esempio n. 3
0
 /**
  * Create new instance of ConfManager class.
  *
  * @param \Illuminate\Foundation\Application $driver
  */
 public function __construct($driver)
 {
     parent::__construct($driver);
 }
Esempio n. 4
0
 public function __construct($app)
 {
     parent::__construct($app);
     $this->dbConnection = $this->app['db']->connection();
     $this->auditLogger = new DatabaseAuditLogger($this->_cfg('audit_log_table'), $this->dbConnection);
 }
Esempio n. 5
0
 /**
  * @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;
 }
Esempio n. 6
0
 /**
  * Init CASAuthentication
  *
  * @param $config
  * @param AuthManager $auth
  */
 public function __construct($app)
 {
     parent::__construct($app);
     $this->config = $this->app['config']['services.cas'];
     $this->initialize();
 }