1 | <?php |
||
25 | class SymfonyEnvironmentBuilder implements EnvironmentBuilderInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var Application |
||
29 | * |
||
30 | * Application |
||
31 | */ |
||
32 | protected $application; |
||
33 | |||
34 | /** |
||
35 | * Set up environment |
||
36 | * |
||
37 | * @param KernelInterface $kernel Kernel |
||
38 | * |
||
39 | * @return $this Self object |
||
40 | */ |
||
41 | public function setUp(KernelInterface $kernel) |
||
53 | |||
54 | /** |
||
55 | * Tear down environment |
||
56 | * |
||
57 | * @param KernelInterface $kernel Kernel |
||
58 | * |
||
59 | * @return $this Self object |
||
60 | */ |
||
61 | public function tearDown(KernelInterface $kernel) |
||
68 | |||
69 | /** |
||
70 | * Get authenticated user |
||
71 | * |
||
72 | * @param string $role Role |
||
73 | * |
||
74 | * @return mixed User for authentication |
||
75 | */ |
||
76 | public function getAuthenticationUser($role) |
||
80 | |||
81 | /** |
||
82 | * Execute a command |
||
83 | * |
||
84 | * @param string $command Command |
||
85 | * @param array $parameters Parameters |
||
86 | * |
||
87 | * @return $this Self object |
||
88 | */ |
||
89 | protected function executeCommand( |
||
111 | } |
||
112 |