作者:gaaarfil
项目:laravel-con
/**
* Create new instance of ConfManager class.
*
* @param \Illuminate\Foundation\Application $driver
*/
public function __construct($driver)
{
parent::__construct($driver);
}
作者:avverti
项目:caslit
/**
* Init CASAuthentication
*
* @param $config
* @param AuthManager $auth
*/
public function __construct($app)
{
parent::__construct($app);
$this->config = $this->app['config']['services.cas'];
$this->initialize();
}
作者:GeorgeBroadle
项目:caffeine-vendo
/**
* Call a custom driver creator.
*
* @param string $driver
* @return \Illuminate\Auth\Guard
*/
protected function callCustomCreator($driver)
{
$custom = parent::callCustomCreator($driver);
if ($custom instanceof Guard) {
return $custom;
}
return new Guard($custom, $this->app['session.store']);
}
作者:alexg
项目:OidConnec
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';
}
作者:endyjasm
项目:neo4
/**
* 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'];
}
作者:defra9
项目:levecchiecredenze.i
/**
* Create a new driver instance.
*
* @param string $driver
* @return mixed
*/
protected function createDriver($driver)
{
$guard = parent::createDriver($driver);
// When using the remember me functionality of the authentication services we
// will need to be set the encryption isntance of the guard, which allows
// secure, encrypted cookie values to get generated for those cookies.
$guard->setCookieJar($this->app['cookie']);
$guard->setDispatcher($this->app['events']);
return $guard;
}
作者:owen-i
项目:laravel-auditin
/**
* {@inheritdoc}
*/
protected function createDriver($driver)
{
try {
return parent::createDriver($driver);
} catch (InvalidArgumentException $e) {
if (class_exists($driver)) {
return $this->app->make($driver);
}
throw $e;
}
}
作者:devhrm
项目:krake
protected function callCustomCreator($driver)
{
return $this->buildSession(parent::callCustomCreator($driver));
}
作者:bignerdranc
项目:client-validation-generato
/**
* Create a new driver instance.
*
* @param string $driver
* @return mixed
*/
protected function createDriver($driver)
{
$clientValidationGenerator = parent::createDriver($driver);
// any other setup needed
return $clientValidationGenerator;
}
作者:npmwe
项目:paymen
public function __construct($app)
{
parent::__construct($app);
$this->dbConnection = $this->app['db']->connection();
$this->auditLogger = new DatabaseAuditLogger($this->_cfg('audit_log_table'), $this->dbConnection);
}
作者:bignerdranc
项目:laravel-form
/**
* Create a new driver instance.
*
* @param string $driver
* @return mixed
*/
protected function createDriver($driver)
{
$renderer = parent::createDriver($driver);
// any other setup needed
return $renderer;
}
作者:dinghu
项目:cr
/**
* Register a custom driver creator Closure.
*
* @param string $name
* @param \Closure $callback
*
* @return $this
*/
public function extend($name, Closure $callback)
{
$this->parsers[Str::camel($name)] = Str::title($name);
return parent::extend($name, $callback);
}
作者:askedi
项目:laravel-multiaut
/**
* Get a driver instance.
*
* @param string $driver
*
* @return mixed
*/
public function driver($driver = null)
{
$driver = $driver ?: $this->getDefaultDriver();
$this->driver = $driver;
if (!in_array($driver, config('multiauth.drivers'))) {
$driver = 'socialite';
}
return parent::driver($driver);
}
作者:cek
项目:concrete5-
/**
* @return \Doctrine\DBAL\Driver
*/
public function getDrivers()
{
return parent::getDrivers();
}