当前位置: 首页>>代码示例>>PHP>>正文


PHP Provider::__construct方法代码示例

本文整理汇总了PHP中Provider::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Provider::__construct方法的具体用法?PHP Provider::__construct怎么用?PHP Provider::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Provider的用法示例。


在下文中一共展示了Provider::__construct方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct(array $options = array())
 {
     if (!extension_loaded('xcache')) {
         throw new \RuntimeException('XCache does not installed or enabled in php.ini');
     }
     parent::__construct($options);
 }
开发者ID:mdzzohrabi,项目名称:azera-cache,代码行数:7,代码来源:XCache.php

示例2: __construct

 public function __construct(array $options = array())
 {
     parent::__construct($options);
     $this->directory = $options['directory'];
     if (!is_dir($this->directory) && !@mkdir($this->directory, 0777, true)) {
         throw new \InvalidArgumentException(sprintf('The directory "%s" does not exists and could not be created.', $this->directory));
     }
 }
开发者ID:mdzzohrabi,项目名称:azera-cache,代码行数:8,代码来源:File.php

示例3: __construct

 /**
  * Constructs password login provider for the specified configuration.
  * 
  * @param \PHPixie\Pixie $pixie Pixie dependency container
  * @param \PHPixie\Pixie\Service $service Service instance that this login provider belongs to.
  * @param string $config Name of the configuration
  */
 public function __construct($pixie, $service, $config)
 {
     parent::__construct($pixie, $service, $config);
     $this->app_id = $pixie->config->get($this->config_prefix . "app_id");
     $this->app_secret = $pixie->config->get($this->config_prefix . "app_secret");
     $this->permissions = $pixie->config->get($this->config_prefix . "permissions", array());
     $this->fbid_field = $pixie->config->get($this->config_prefix . "fbid_field");
     $this->access_token_key = "auth_{$config}_facebook_token";
     $this->token_expires_key = "auth_{$config}_facebook_token_expires";
 }
开发者ID:brennantom,项目名称:hackazon,代码行数:17,代码来源:Facebook.php

示例4: __construct

 /**
  * Constructs password login provider for the specified configuration.
  *
  * @param \PHPixie\Pixie $pixie Pixie dependency container
  * @param \PHPixie\Pixie\Service $service Service instance that this login provider belongs to.
  * @param string $config Name of the configuration
  */
 public function __construct($pixie, $service, $config)
 {
     parent::__construct($pixie, $service, $config);
     $this->login_field = $pixie->config->get($this->config_prefix . "login_field");
     $this->password_field = $pixie->config->get($this->config_prefix . "password_field");
     $this->hash_method = $pixie->config->get($this->config_prefix . "hash_method", 'md5');
     $this->login_token_field = $pixie->config->get($this->config_prefix . "login_token_field", null);
     if ($this->login_token_field) {
         $this->login_token_lifetime = $pixie->config->get($this->config_prefix . "login_token_lifetime", 604800);
     }
 }
开发者ID:nagiro,项目名称:creso,代码行数:18,代码来源:Password.php

示例5: __construct

 /**
  * Constructs password login provider for the specified configuration.
  *
  * @param \PHPixie\Pixie $pixie Pixie dependency container
  * @param \PHPixie\Pixie\Service $service Service instance that this login provider belongs to.
  * @param string $config Name of the configuration
  */
 public function __construct($pixie, $service, $config)
 {
     parent::__construct($pixie, $service, $config);
     $this->oauth_consumer_key = $pixie->config->get($this->config_prefix . "oauth_consumer_key");
     $this->oauth_consumer_secret = $pixie->config->get($this->config_prefix . "oauth_consumer_secret");
     $this->oauth_signature_method = $pixie->config->get($this->config_prefix . "oauth_signature_method");
     $this->oauth_version = $pixie->config->get($this->config_prefix . "oauth_version");
     $this->twid_field = $pixie->config->get($this->config_prefix . "twid_field");
     $this->access_token_key = "auth_{$config}_twitter_token";
     $this->token_expires_key = "auth_{$config}_twitter_token_expires";
 }
开发者ID:brennantom,项目名称:hackazon,代码行数:18,代码来源:Twitter.php

示例6: __construct

 public function __construct(array $options = array())
 {
     // Now make sure we have the default scope to get user data
     $options['scope'] = \Arr::merge(array('wl.basic', 'wl.emails'), (array) \Arr::get($options, 'scope', array()));
     parent::__construct($options);
 }
开发者ID:wuhaa11,项目名称:fuel-oauth2,代码行数:6,代码来源:windowslive.php

示例7: __construct

 public function __construct($user, $password, $mode)
 {
     parent::__construct($user, $password, $mode);
 }
开发者ID:usckuro,项目名称:espiralapi,代码行数:4,代码来源:EspiralAdapter.php

示例8: __construct

 /**
  * @param $provider
  * @param $cacheSize
  */
 public function __construct($provider, $cacheSize)
 {
     parent::__construct();
     $this->provider = $provider;
     $this->setCacheSize($cacheSize);
 }
开发者ID:helpfulrobot,项目名称:littlegiant-silverstripe-seeder,代码行数:10,代码来源:ProviderCache.php

示例9: __construct

 public function __construct(array $options = array())
 {
     // Now make sure we have the default scope to get user data
     $options['scope'] = \Arr::merge(array('https://www.google.com/m8/feeds'), (array) \Arr::get($options, 'scope', array()));
     parent::__construct($options);
 }
开发者ID:rainyman2012,项目名称:fuel-oauth,代码行数:6,代码来源:google.php

示例10: __construct

 /**
  * @param string $apiKey
  */
 public function __construct($apiKey)
 {
     $this->apiKey = $apiKey;
     parent::__construct();
 }
开发者ID:skoro,项目名称:pod,代码行数:8,代码来源:Nasa.php

示例11: __construct

 /**
  * __construct
  *
  * @param Manager $manager Manager instance
  * @param string  $service service name (case sensitive)
  */
 public function __construct(Manager $manager, $service)
 {
     $this->response = new Response();
     $this->response->setSuccess(false)->addErrorMessage(sprintf("No provider installed for %s", $service));
     parent::__construct($manager, $service);
 }
开发者ID:ming-hai,项目名称:XoopsCore,代码行数:12,代码来源:NullProvider.php


注:本文中的Provider::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。