86
86
* browser: phantomjs
87
87
* ```
88
88
*
89
- * @property-read ContainerInterface $container
90
- *
91
89
*/
92
90
class Symfony extends Framework implements DoctrineProvider, PartedModule
93
91
{
@@ -96,12 +94,6 @@ class Symfony extends Framework implements DoctrineProvider, PartedModule
96
94
*/
97
95
public $ kernel ;
98
96
99
- /**
100
- * @var ContainerInterface
101
- * @deprecated Use _getContainer() instead
102
- */
103
- private $ container ;
104
-
105
97
public $ config = [
106
98
'app_path ' => 'app ' ,
107
99
'var_path ' => 'app ' ,
@@ -139,24 +131,6 @@ public function _parts()
139
131
*/
140
132
protected $ persistentServices = [];
141
133
142
- public function __get ($ property )
143
- {
144
- $ result = null ;
145
- if (property_exists ($ this , $ property )) {
146
- switch ($ property ) {
147
- case 'container ' :
148
- $ result = $ this ->_getContainer ();
149
- break ;
150
- default :
151
- $ this ->fail (sprintf ('Property "%s" can not be accessed. ' , $ property ));
152
- break ;
153
- }
154
- } else {
155
- $ this ->fail (sprintf ('Property "%s" does not exist. ' , $ property ));
156
- }
157
- return $ result ;
158
- }
159
-
160
134
public function _initialize ()
161
135
{
162
136
$ cache = Configuration::projectDir () . $ this ->config ['var_path ' ] . DIRECTORY_SEPARATOR . 'bootstrap.php.cache ' ;
@@ -193,7 +167,7 @@ public function _initialize()
193
167
public function _before (\Codeception \TestInterface $ test )
194
168
{
195
169
$ this ->persistentServices = array_merge ($ this ->persistentServices , $ this ->permanentServices );
196
- $ this ->client = new Symfony2Connector ($ this ->kernel , $ this ->persistentServices , $ this ->config ['rebootable_client ' ]);
170
+ $ this ->client = new SymfonyConnector ($ this ->kernel , $ this ->persistentServices , $ this ->config ['rebootable_client ' ]);
197
171
}
198
172
199
173
/**
0 commit comments