public function __construct(StandardConfigurationProvider $configurationProvider, DefaultPropertyCollector $collector)
 {
     /*
      * Note: payment information is placed in this class instead of the payment step because I wanted to make
      * the payment easily configurable which is why this class extends AbstractConfigurableElement.  The payment
      * step class does not extend AbstractConfigurableElement (because it needs the constructor for dependency
      * injection) and so this class is here so payment can be globally configured.
      *
      * This way if you want to handle your own credit card you only have to configure this class
      */
     parent::__construct($configurationProvider, $collector);
     $this->setDefaults();
 }
 public function __construct($configurationFile = null)
 {
     /*
      * Note: payment information is placed in this class instead of the payment step because I wanted to make
      * the payment easily configurable which is why this class extends AbstractConfigurableElement.  The payment
      * step class does not extend AbstractConfigurableElement (because it needs the constructor for dependency
      * injection) and so this class is here so payment can be globally configured.
      *
      * This way if you want to handle your own credit card you only have to configure this class
      */
     $this->creditCardNumber = '4111111111111111';
     $this->expiryMonth = '1';
     $this->expiryYear = date('Y', time() + 60 * 60 * 24 * 365 * 5);
     // January plus 5 years
     $this->cvv = '123';
     $this->type = 'VI';
     parent::__construct($configurationFile);
 }
예제 #3
0
 public function __construct(ConfigurationProviderInterface $configurationProvider, DefaultPropertyCollector $collector, ApiConfiguration $apiConfiguration, Logger $logger)
 {
     parent::__construct($configurationProvider, $collector);
     $this->apiConfiguration = $apiConfiguration;
     $this->logger = $logger;
 }
예제 #4
0
파일: Username.php 프로젝트: magium/auth0
 public function __construct(ConfigurationProviderInterface $configurationProvider, DefaultPropertyCollector $collector, WebDriver $webDriver)
 {
     parent::__construct($configurationProvider, $collector);
     $this->webDriver = $webDriver;
 }