1 | <?php |
||
26 | class IoHelper implements HelperInterface, EventSubscriberInterface |
||
27 | { |
||
28 | /** |
||
29 | * @var HelperSet |
||
30 | */ |
||
31 | private $helperSet; |
||
32 | |||
33 | /** |
||
34 | * @var OutputInterface |
||
35 | */ |
||
36 | private $output; |
||
37 | |||
38 | /** |
||
39 | * @var InputInterface |
||
40 | */ |
||
41 | private $input; |
||
42 | |||
43 | /** |
||
44 | * @see getSubscribedEvents |
||
45 | * |
||
46 | * @param ConsoleCommandEvent $event |
||
47 | */ |
||
48 | public function initializeEventIo(ConsoleCommandEvent $event) |
||
54 | |||
55 | /** |
||
56 | * @param InputInterface $input |
||
57 | * @param OutputInterface $output |
||
58 | */ |
||
59 | public function initializeIo(InputInterface $input, OutputInterface $output) |
||
64 | |||
65 | /** |
||
66 | * @return OutputInterface |
||
67 | */ |
||
68 | public function getOutput() |
||
72 | |||
73 | /* |
||
74 | * HelperInterface |
||
75 | */ |
||
76 | |||
77 | /** |
||
78 | * Sets the helper set associated with this helper. |
||
79 | * |
||
80 | * @param HelperSet $helperSet A HelperSet instance |
||
81 | * |
||
82 | * @api |
||
83 | */ |
||
84 | public function setHelperSet(HelperSet $helperSet = null) |
||
88 | |||
89 | /** |
||
90 | * Gets the helper set associated with this helper. |
||
91 | * |
||
92 | * @return HelperSet A HelperSet instance |
||
93 | * |
||
94 | * @api |
||
95 | */ |
||
96 | public function getHelperSet() |
||
100 | |||
101 | /** |
||
102 | * Returns the canonical name of this helper. |
||
103 | * |
||
104 | * @return string The canonical name |
||
105 | * |
||
106 | * @api |
||
107 | */ |
||
108 | public function getName() |
||
112 | |||
113 | /* |
||
114 | * EventSubscriberInterface |
||
115 | */ |
||
116 | |||
117 | /** |
||
118 | * @inheritdoc |
||
119 | */ |
||
120 | public static function getSubscribedEvents() |
||
126 | } |
||
127 | |||
128 |