/** * @inheritdoc */ public function start() { parent::start(); // Register "location-search" form. $filename = $this->config('location-search-form.filename'); $this->getEngine()->forms()->registry()->registerFormDefinitionFilePath($this->config('location-search-form.key'), $this, $filename); }
/** * @inheritdoc */ public function start() { parent::start(); // Register the checkout form generator. $this->getEngine()->forms()->registry()->registerFormGeneratorCallback($this->config('checkout.form-key'), array($this, 'buildCheckoutForm')); // Create the trolley object. $this->trolley = new Trolley($this, $this->config('page-messages')); }
/** * @inheritdoc */ public function start() { parent::start(); // Create RealCaptcha object for use during this request. $this->captcha = new RealCaptcha($this->config('real-captcha-options')); // Register the namespace for the RealCaptcha field. $this->getEngine()->forms()->registry()->registerFieldNamespace('\\Sitegear\\Module\\RealCaptcha\\Form'); }
/** * @inheritdoc */ public function start() { parent::start(); // The transport name cannot be converted due to old-school class names in SwiftMailer with underscores $transportName = $this->config('transport'); $transportClass = new \ReflectionClass($transportName); /** @noinspection PhpParamsInspection The null gives a warning phpStorm 5.0.4 but is valid */ $transport = $transportClass->getMethod('newInstance')->invokeArgs(null, $this->config('transportArguments', array())); $this->mailer = \Swift_Mailer::newInstance($transport); }
/** * @inheritdoc */ public function start() { parent::start(); // Register constraint namespace. $this->getEngine()->forms()->registry()->registerConstraintNamespace('\\Sitegear\\Module\\UserIntegration\\Constraint'); // Register login form. $filename = $this->config('login.form.filename'); $this->getEngine()->forms()->registry()->registerFormDefinitionFilePath($this->config('login.form.key'), $this, $filename); // Register sign-up form. $filename = $this->config('sign-up.form.filename'); $this->getEngine()->forms()->registry()->registerFormDefinitionFilePath($this->config('sign-up.form.key'), $this, $filename); // Register guest-login form. $filename = $this->config('guest-login.form.filename'); $this->getEngine()->forms()->registry()->registerFormDefinitionFilePath($this->config('guest-login.form.key'), $this, $filename); // Register credentials recovery form. $filename = $this->config('recover-login.form.filename'); $this->getEngine()->forms()->registry()->registerFormDefinitionFilePath($this->config('recover-login.form.key'), $this, $filename); }
/** * @inheritdoc */ public function stop() { parent::stop(); $this->entityManager->flush(); $this->entityManager->close(); }
/** * @inheritdoc */ public function start() { parent::start(); $this->registry = new FormRegistry($this, $this->config('form-builder'), $this->config('field-namespaces', array()), $this->config('constraint-namespaces', array()), $this->config('condition-namespaces', array())); }
/** * @inheritdoc */ public function start() { parent::start(); $this->messages = $this->getEngine()->getSession()->get($this->config('session-key')); }