/** * {@inheritdoc} */ public function build(ProcessBuilderInterface $builder) { $cart = $this->getCurrentCart(); $builder->add('security', 'sylius_checkout_security')->add('addressing', 'sylius_checkout_addressing')->add('shipping', 'sylius_checkout_shipping')->add('payment', 'sylius_checkout_payment')->add('finalize', 'sylius_checkout_finalize')->add('purchase', 'sylius_checkout_purchase'); $builder->setDisplayRoute('sylius_checkout_display')->setForwardRoute('sylius_checkout_forward')->setRedirect('sylius_homepage')->validate(function () use($cart) { return !$cart->isEmpty(); }); }
/** * Builds process for given scenario alias. * * @param string $scenarioAlias * * @return ProcessInterface */ protected function buildProcess($scenarioAlias) { $processScenario = $this->loadScenario($scenarioAlias); $process = $this->builder->build($processScenario); $process->setScenarioAlias($scenarioAlias); return $process; }
public function build(ProcessBuilderInterface $builder) { $builder->add('system_check', new Step\SystemRequirementsStep()); $builder->add('config', new Step\ConfigStep()); $builder->add('process', new Step\InstallStep()); $builder->add('setup', new Step\SetupStep()); $builder->add('finish', new Step\FinishStep()); $builder->setRedirect('_home'); }
/** * {@inheritdoc} */ public function build(ProcessBuilderInterface $builder) { $builder->add('security', 'sylius_checkout_security')->add('addressing', 'sylius_checkout_addressing')->add('shipping', 'sylius_checkout_shipping')->add('payment', 'sylius_checkout_payment')->add('finalize', 'sylius_checkout_finalize')->setDisplayRoute('sylius_checkout_display')->setForwardRoute('sylius_checkout_forward')->setRedirect('sylius_order_purchase')->setRedirectParams(['paymentId' => $this->getLastNewPaymentId()])->validate(function () { return !$this->getCurrentCart()->isEmpty(); }); }
/** * {@inheritdoc} */ public function build(ProcessBuilderInterface $builder) { $builder->add('security', 'sylius_checkout_security')->add('addressing', 'sylius_checkout_addressing')->add('shipping', 'sylius_checkout_shipping')->add('payment', 'sylius_checkout_payment')->add('finalize', 'sylius_checkout_finalize')->setDisplayRoute('sylius_checkout_display')->setForwardRoute('sylius_checkout_forward')->setRedirect('sylius_shop_checkout_thank_you')->validate(function () { return !$this->getCurrentCart()->isEmpty(); }); }
/** * {@inheritdoc} */ public function build(ProcessBuilderInterface $builder) { $builder->add('welcome', new Step\WelcomeStep())->add('configure', new Step\ConfigureStep())->add('schema', new Step\SchemaStep())->add('setup', new Step\SetupStep())->add('installation', new Step\InstallationStep())->add('final', new Step\FinalStep())->setRedirect('homepage'); }
public function build(ProcessBuilderInterface $builder) { $builder->add('configure', new OroInstallerStep\ConfigureStep())->add('schema', new DiamanteInstallerStep\InitializationStep())->add('setup', new DiamanteInstallerStep\SetupStep())->add('final', new DiamanteInstallerStep\FinalStep())->setRedirect('diamante_ticket_list'); }
/** * {@inheritdoc} */ public function build(ProcessBuilderInterface $builder) { $builder->add('welcome', new Step\WelcomeStep())->add('configure', new Step\ConfigureStep())->add('upgrade', new Step\UpgradeStep())->add('final', new Step\FinalStep())->setRedirect('homepage'); }
/** * {@inheritdoc} */ public function build(ProcessBuilderInterface $builder) { $builder->add('welcome', new Step\WelcomeStep())->add('check', new Step\CheckStep())->add('configure', new Step\ConfigureStep())->add('setup', new Step\SetupStep())->setRedirect('sylius_homepage'); }
public function build(ProcessBuilderInterface $builder) { $builder->add('welcome', new Step\WelcomeStep())->add('university', new Step\UniversityStep())->add('college', new Step\CollegeStep())->add('student_delegation', new Step\StudentDelegationStep())->add('responsible', new Step\ResponsibleStep())->add('taxdata', new Step\TaxdataStep())->setRedirect('registration_open'); }