You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($thisinstanceof \PHPUnit_Framework_MockObject_MockObject || $thisinstanceof \Prophecy\Doubler\DoubleInterface) {
58
+
$class = get_parent_class($class);
59
+
}
60
+
if (__CLASS__ === $class) {
61
+
return;
62
+
}
63
+
$r = new \ReflectionMethod($class, 'lazyLoad');
64
+
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
65
+
@trigger_error(sprintf('Extending %s::lazyLoad() in %s is deprecated since version 3.3 and won\'t be supported anymore in 4.0 as it will be private.', __CLASS__, $class), E_USER_DEPRECATED);
66
+
}
55
67
}
56
68
57
69
/**
@@ -161,8 +173,13 @@ public function addSubscriberService($serviceId, $class)
161
173
}
162
174
}
163
175
176
+
/**
177
+
* @deprecated since version 3.3, to be removed in 4.0. Inject the container or the services you need in your listeners/subscribers instead.
178
+
*/
164
179
publicfunctiongetContainer()
165
180
{
181
+
@trigger_error('The '.__METHOD__.'() method is deprecated since version 3.3 and will be removed in 4.0. Inject the container or the services you need in your listeners/subscribers instead.', E_USER_DEPRECATED);
182
+
166
183
return$this->container;
167
184
}
168
185
@@ -173,6 +190,8 @@ public function getContainer()
173
190
* @param string $eventName The name of the event to dispatch. The name of
174
191
* the event is the name of the method that is
175
192
* invoked on listeners.
193
+
*
194
+
* @deprecated since version 3.3, will be private in 4.0.
0 commit comments