本文整理匯總了PHP中Illuminate\Support\Manager::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Manager::__construct方法的具體用法?PHP Manager::__construct怎麽用?PHP Manager::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Illuminate\Support\Manager
的用法示例。
在下文中一共展示了Manager::__construct方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
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';
}
示例2: __construct
/**
* 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'];
}
示例3: __construct
/**
* Create new instance of ConfManager class.
*
* @param \Illuminate\Foundation\Application $driver
*/
public function __construct($driver)
{
parent::__construct($driver);
}
示例4: __construct
public function __construct($app)
{
parent::__construct($app);
$this->dbConnection = $this->app['db']->connection();
$this->auditLogger = new DatabaseAuditLogger($this->_cfg('audit_log_table'), $this->dbConnection);
}
示例5: __construct
/**
* @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;
}
示例6: __construct
/**
* Init CASAuthentication
*
* @param $config
* @param AuthManager $auth
*/
public function __construct($app)
{
parent::__construct($app);
$this->config = $this->app['config']['services.cas'];
$this->initialize();
}