|
0
|
1 |
<?php |
|
|
2 |
|
|
|
3 |
/* |
|
|
4 |
* This file is part of the Symfony package. |
|
|
5 |
* |
|
|
6 |
* (c) Fabien Potencier <fabien@symfony.com> |
|
|
7 |
* |
|
|
8 |
* For the full copyright and license information, please view the LICENSE |
|
|
9 |
* file that was distributed with this source code. |
|
|
10 |
*/ |
|
|
11 |
|
|
|
12 |
namespace Sensio\Bundle\DistributionBundle\Configurator\Step; |
|
|
13 |
|
|
|
14 |
use Symfony\Component\Form\Type\FormTypeInterface; |
|
|
15 |
|
|
|
16 |
/** |
|
|
17 |
* StepInterface. |
|
|
18 |
* |
|
|
19 |
* @author Marc Weistroff <marc.weistroff@sensio.com> |
|
|
20 |
*/ |
|
|
21 |
interface StepInterface |
|
|
22 |
{ |
|
|
23 |
/** |
|
|
24 |
* __construct |
|
|
25 |
* |
|
|
26 |
* @param array $parameters |
|
|
27 |
*/ |
|
|
28 |
function __construct(array $parameters); |
|
|
29 |
|
|
|
30 |
/** |
|
|
31 |
* Returns the form used for configuration. |
|
|
32 |
* |
|
|
33 |
* @return FormTypeInterface |
|
|
34 |
*/ |
|
|
35 |
function getFormType(); |
|
|
36 |
|
|
|
37 |
/** |
|
|
38 |
* Checks for requirements. |
|
|
39 |
* |
|
|
40 |
* @return array |
|
|
41 |
*/ |
|
|
42 |
function checkRequirements(); |
|
|
43 |
|
|
|
44 |
/** |
|
|
45 |
* Checks for optional setting it could be nice to have. |
|
|
46 |
* |
|
|
47 |
* @return array |
|
|
48 |
*/ |
|
|
49 |
function checkOptionalSettings(); |
|
|
50 |
|
|
|
51 |
/** |
|
|
52 |
* Returns the template to be renderer for this step. |
|
|
53 |
* |
|
|
54 |
* @return string |
|
|
55 |
*/ |
|
|
56 |
function getTemplate(); |
|
|
57 |
|
|
|
58 |
/** |
|
|
59 |
* Updates form data parameters. |
|
|
60 |
* |
|
|
61 |
* @param array $parameters |
|
|
62 |
* @return array |
|
|
63 |
*/ |
|
|
64 |
function update(StepInterface $data); |
|
|
65 |
} |