InstallScenario.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. namespace Chamilo\InstallerBundle\Process;
  4. use Sylius\Bundle\FlowBundle\Process\Builder\ProcessBuilderInterface;
  5. use Sylius\Bundle\FlowBundle\Process\Scenario\ProcessScenarioInterface;
  6. use Symfony\Component\DependencyInjection\ContainerAware;
  7. use Symfony\Component\DependencyInjection\ContainerAwareInterface;
  8. use Symfony\Component\DependencyInjection\ContainerAwareTrait;
  9. /**
  10. * Class InstallScenario
  11. * @package Chamilo\InstallerBundle\Process
  12. */
  13. class InstallScenario implements ProcessScenarioInterface, ContainerAwareInterface
  14. {
  15. use ContainerAwareTrait;
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function build(ProcessBuilderInterface $builder)
  20. {
  21. $builder
  22. ->add('welcome', new Step\WelcomeStep())
  23. ->add('configure', new Step\ConfigureStep())
  24. ->add('schema', new Step\SchemaStep())
  25. ->add('setup', new Step\SetupStep())
  26. ->add('installation', new Step\InstallationStep())
  27. ->add('final', new Step\FinalStep())
  28. ->setRedirect('homepage')
  29. ;
  30. }
  31. }