本文整理汇总了PHP中Illuminate\Support\Manager类的典型用法代码示例。如果您正苦于以下问题:PHP Manager类的具体用法?PHP Manager怎么用?PHP Manager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Manager类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Create new instance of ConfManager class.
*
* @param \Illuminate\Foundation\Application $driver
*/
public function __construct($driver)
{
parent::__construct($driver);
}
开发者ID:gaaarfild,项目名称:laravel-conf,代码行数:9,代码来源:ConfManager.php
示例2: __construct
/**
* Init CASAuthentication
*
* @param $config
* @param AuthManager $auth
*/
public function __construct($app)
{
parent::__construct($app);
$this->config = $this->app['config']['services.cas'];
$this->initialize();
}
开发者ID:avvertix,项目名称:caslite,代码行数:12,代码来源:CasliteManager.php
示例3: callCustomCreator
/**
* 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']);
}
开发者ID:GeorgeBroadley,项目名称:caffeine-vendor,代码行数:14,代码来源:AuthManager.php
示例4: __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';
}
开发者ID:alexgr,项目名称:OidConnect,代码行数:9,代码来源:IdpFactoryManager.php
示例5: __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'];
}
开发者ID:endyjasmi,项目名称:neo4j,代码行数:16,代码来源:Neo4j.php
示例6: createDriver
/**
* 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;
}
开发者ID:defra91,项目名称:levecchiecredenze.it,代码行数:16,代码来源:AuthManager.php
示例7: createDriver
/**
* {@inheritdoc}
*/
protected function createDriver($driver)
{
try {
return parent::createDriver($driver);
} catch (InvalidArgumentException $e) {
if (class_exists($driver)) {
return $this->app->make($driver);
}
throw $e;
}
}
开发者ID:owen-it,项目名称:laravel-auditing,代码行数:14,代码来源:AuditorManager.php
示例8: callCustomCreator
protected function callCustomCreator($driver)
{
return $this->buildSession(parent::callCustomCreator($driver));
}
开发者ID:devhrmx,项目名称:kraken,代码行数:4,代码来源:compiled.php
示例9: createDriver
/**
* Create a new driver instance.
*
* @param string $driver
* @return mixed
*/
protected function createDriver($driver)
{
$clientValidationGenerator = parent::createDriver($driver);
// any other setup needed
return $clientValidationGenerator;
}
开发者ID:bignerdranch,项目名称:client-validation-generator,代码行数:12,代码来源:ClientValidationManager.php
示例10: __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);
}
开发者ID:npmweb,项目名称:payment,代码行数:6,代码来源:PaymentManager.php
示例11: createDriver
/**
* Create a new driver instance.
*
* @param string $driver
* @return mixed
*/
protected function createDriver($driver)
{
$renderer = parent::createDriver($driver);
// any other setup needed
return $renderer;
}
开发者ID:bignerdranch,项目名称:laravel-forms,代码行数:12,代码来源:RendererManager.php
示例12: extend
/**
* 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);
}
开发者ID:dinghua,项目名称:crm,代码行数:13,代码来源:FormatManager.php
示例13: driver
/**
* 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);
}
开发者ID:askedio,项目名称:laravel-multiauth,代码行数:16,代码来源:MultiAuthManager.php
示例14: getDrivers
/**
* @return \Doctrine\DBAL\Driver
*/
public function getDrivers()
{
return parent::getDrivers();
}
开发者ID:ceko,项目名称:concrete5-1,代码行数:7,代码来源:DriverManager.php
注:本文中的Illuminate\Support\Manager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论