Esempio n. 1
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');
 }
Esempio n. 2
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();
     });
 }
Esempio n. 3
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();
     });
 }
 /**
  * {@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');
 }
Esempio n. 7
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');
 }
Esempio n. 8
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');
 }
 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');
 }