Browse Source

Added warnings for deprecated properties.

Robert Pustułka 8 years ago
parent
commit
b5693d12b5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Controller/Controller.php

+ 2 - 0
src/Controller/Controller.php

@@ -348,6 +348,7 @@ class Controller implements EventListenerInterface, EventDispatcherInterface
         ];
         if (isset($deprecated[$name])) {
             $method = $deprecated[$name];
+            deprecationWarning(sprintf('Controller::$%s is deprecated. Use $this->%s() instead.', $name, $method));
 
             return $this->{$method}();
         }
@@ -390,6 +391,7 @@ class Controller implements EventListenerInterface, EventDispatcherInterface
         ];
         if (isset($deprecated[$name])) {
             $method = $deprecated[$name];
+            deprecationWarning(sprintf('Controller::$%s is deprecated. Use $this->%s() instead.', $name, $method));
             $this->{$method}($value);
 
             return;