예제 #1
0
 /**
  * {@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();
     });
 }
예제 #2
0
 /**
  * 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;
 }
예제 #3
0
 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');
 }
예제 #4
0
 /**
  * {@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();
     });
 }
예제 #6
0
 /**
  * {@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');
 }
예제 #8
0
 /**
  * {@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');
 }
예제 #9
0
 /**
  * {@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');
 }
예제 #10
0
 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');
 }