1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- /* For licensing terms, see /license.txt */
- namespace Chamilo\InstallerBundle\Process;
- use Sylius\Bundle\FlowBundle\Process\Builder\ProcessBuilderInterface;
- use Sylius\Bundle\FlowBundle\Process\Scenario\ProcessScenarioInterface;
- use Symfony\Component\DependencyInjection\ContainerAware;
- use Symfony\Component\DependencyInjection\ContainerAwareInterface;
- use Symfony\Component\DependencyInjection\ContainerAwareTrait;
- /**
- * Class InstallScenario
- * @package Chamilo\InstallerBundle\Process
- */
- class InstallScenario implements ProcessScenarioInterface, ContainerAwareInterface
- {
- use ContainerAwareTrait;
- /**
- * {@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')
- ;
- }
- }
|