File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,22 +90,6 @@ public function registerApp(string $appClass): void {
9090 }
9191 }
9292
93- /**
94- * @param \Closure $service The service must implement INotifier, otherwise a
95- * \InvalidArgumentException is thrown later
96- * @param \Closure $info An array with the keys 'id' and 'name' containing
97- * the app id and the app name
98- * @deprecated 17.0.0 use registerNotifierService instead.
99- * @since 8.2.0 - Parameter $info was added in 9.0.0
100- */
101- public function registerNotifier (\Closure $ service , \Closure $ info ): void {
102- $ infoData = $ info ();
103- $ exception = new \InvalidArgumentException (
104- 'Notifier ' . $ infoData ['name ' ] . ' (id: ' . $ infoData ['id ' ] . ') is not considered because it is using the old way to register. '
105- );
106- $ this ->logger ->error ($ exception ->getMessage (), ['exception ' => $ exception ]);
107- }
108-
10993 /**
11094 * @param string $notifierService The service must implement INotifier, otherwise a
11195 * \InvalidArgumentException is thrown later
Original file line number Diff line number Diff line change @@ -19,16 +19,6 @@ interface IManager extends IApp, IPreloadableNotifier {
1919 */
2020 public function registerApp (string $ appClass ): void ;
2121
22- /**
23- * @param \Closure $service The service must implement INotifier, otherwise a
24- * \InvalidArgumentException is thrown later
25- * @param \Closure $info An array with the keys 'id' and 'name' containing
26- * the app id and the app name
27- * @deprecated 17.0.0 use registerNotifierService instead.
28- * @since 8.2.0 - Parameter $info was added in 9.0.0
29- */
30- public function registerNotifier (\Closure $ service , \Closure $ info );
31-
3222 /**
3323 * @param string $notifierService The service must implement INotifier, otherwise a
3424 * \InvalidArgumentException is thrown later
You can’t perform that action at this time.
0 commit comments