diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bea43ff..7299a987 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to `Slytherin` will be documented in this file. ### Added - `phpcsfixer.php` as custom rules for the `friendsofphp/php-cs-fixer` package - Test cases for the complete code coverage after running `friendsofphp/php-cs-fixer` +- `@deprecated` notices for specified classes from previous versions ### Changed - `Router::__construct` supports adding `RouteInterface` in the array diff --git a/src/Application.php b/src/Application.php index 3e916036..6a98ae8c 100644 --- a/src/Application.php +++ b/src/Application.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\System\Routing; /** - * Application + * @deprecated since ~0.9, use "Routing" instead. * - * NOTE: To be removed in v1.0.0. Use "Routing" instead. + * Application * * @package Slytherin * @author Rougin Gutib diff --git a/src/Application/Application.php b/src/Application/Application.php index 5ba751de..c16005ab 100644 --- a/src/Application/Application.php +++ b/src/Application/Application.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Application as Slytherin; /** - * Application + * @deprecated since ~0.9, use "\Application" instead. * - * NOTE: To be removed in v1.0.0. Use "\Application" instead. + * Application * * @package Slytherin * @author Rougin Gutib diff --git a/src/Component/Collection.php b/src/Component/Collection.php index 870ec9c4..b00b3f65 100644 --- a/src/Component/Collection.php +++ b/src/Component/Collection.php @@ -33,8 +33,9 @@ public function __construct() } /** + * @deprecated since ~0.9, use "set" instead. + * * Adds an instance to the container. - * NOTE: To be removed in v1.0.0. Use "set" instead. * * @param string $id * @param object $concrete @@ -79,8 +80,9 @@ public function getDebugger() } /** + * @deprecated since ~0.4, use "getContainer" instead. + * * Returns the dependency injector. - * NOTE: To be removed in v1.0.0. Use "getContainer" instead. * * @return \Rougin\Slytherin\Container\ContainerInterface */ @@ -101,8 +103,9 @@ public function getDispatcher() } /** + * @deprecated since ~0.4, use "getDebugger" instead. + * * Returns the error handler. - * NOTE: To be removed in v1.0.0. Use "getDebugger" instead. * * @return \Rougin\Slytherin\Debug\ErrorHandlerInterface */ @@ -215,8 +218,9 @@ public function setDebugger(ErrorHandlerInterface $debugger) } /** + * @deprecated since ~0.4, use "setContainer" instead. + * * Sets the dependency injector. - * NOTE: To be removed in v1.0.0. Use "setContainer" instead. * * @param \Rougin\Slytherin\Container\ContainerInterface $injector * @return self @@ -238,8 +242,9 @@ public function setDispatcher(Routing $dispatcher) } /** + * @deprecated since ~0.4, use "setDebugger" instead. + * * Sets the error handler. - * NOTE: To be removed in v1.0.0. Use "setDebugger" instead. * * @param \Rougin\Slytherin\Debug\ErrorHandlerInterface $debugger * @return self diff --git a/src/ComponentCollection.php b/src/ComponentCollection.php index 2fd92fe9..b65e3f3d 100644 --- a/src/ComponentCollection.php +++ b/src/ComponentCollection.php @@ -3,13 +3,13 @@ namespace Rougin\Slytherin; /** - * Component Collection + * @deprecated since ~0.4, use "Components" instead. * - * NOTE: To be removed in v1.0.0. Use "Component\Collection" instead. + * Component Collection * * @package Slytherin * @author Rougin Gutib */ -class ComponentCollection extends Component\Collection +class ComponentCollection extends Components { } diff --git a/src/Components.php b/src/Components.php index 8d0d14ae..2f4cdb79 100644 --- a/src/Components.php +++ b/src/Components.php @@ -2,14 +2,16 @@ namespace Rougin\Slytherin; +use Rougin\Slytherin\Component\Collection; + /** - * Component Collection + * @deprecated since ~0.4, use "Component\Collection" instead. * - * NOTE: To be removed in v1.0.0. Use "ComponentCollection" instead. + * Component Collection * * @package Slytherin * @author Rougin Gutib */ -class Components extends ComponentCollection +class Components extends Collection { } diff --git a/src/Configuration.php b/src/Configuration.php index 97abfb93..9312809d 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -3,9 +3,9 @@ namespace Rougin\Slytherin; /** - * Configuration + * @deprecated since ~0.9, use "Integration/Configuration" instead. * - * NOTE: To be removed in v1.0.0. Use "Integration/Configuration" instead. + * Configuration * * @package Slytherin * @author Rougin Gutib diff --git a/src/Container/AurynContainer.php b/src/Container/AurynContainer.php index 4d38010a..04224951 100644 --- a/src/Container/AurynContainer.php +++ b/src/Container/AurynContainer.php @@ -46,8 +46,9 @@ public function __construct(Injector $injector) } /** + * @deprecated since ~0.9, use "set" instead. + * * Adds a new instance to the container. - * NOTE: To be removed in v1.0.0. Use "set" instead. * * @param string $id * @param mixed|null $concrete diff --git a/src/Container/Container.php b/src/Container/Container.php index 4c55a288..b3c40cdd 100644 --- a/src/Container/Container.php +++ b/src/Container/Container.php @@ -28,8 +28,9 @@ public function __construct(array $items = array()) } /** + * @deprecated since ~0.9, use "set" instead. + * * Adds a new instance to the container. - * NOTE: To be removed in v1.0.0. Use "set" instead. * * @param string $id * @param mixed $concrete diff --git a/src/Container/Exception/ContainerException.php b/src/Container/Exception/ContainerException.php index 7b557b60..35c22e4c 100644 --- a/src/Container/Exception/ContainerException.php +++ b/src/Container/Exception/ContainerException.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Container\ContainerException as Slytherin; /** - * Container Exception + * @deprecated since ~0.9, use "Container\ContainerException" instead. * - * NOTE: To be removed in v1.0.0. Use "Container\ContainerException" instead. + * Container Exception * * @package Slytherin * @author Rougin Gutib diff --git a/src/Container/Exception/NotFoundException.php b/src/Container/Exception/NotFoundException.php index f316d48e..db05d4a0 100644 --- a/src/Container/Exception/NotFoundException.php +++ b/src/Container/Exception/NotFoundException.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Container\NotFoundException as Slytherin; /** - * Not Found Exception + * @deprecated since ~0.9, use "Container\NotFoundException" instead. * - * NOTE: To be removed in v1.0.0. Use "Container\NotFoundException" instead. + * Not Found Exception * * @package Slytherin * @author Rougin Gutib diff --git a/src/Container/VanillaContainer.php b/src/Container/VanillaContainer.php index ede371e8..9ddd6324 100644 --- a/src/Container/VanillaContainer.php +++ b/src/Container/VanillaContainer.php @@ -3,9 +3,9 @@ namespace Rougin\Slytherin\Container; /** - * Container + * @deprecated since ~0.9, use "Container" instead. * - * NOTE: To be removed in v1.0.0. Use "Container" instead. + * Container * * @package Slytherin * @author Rougin Gutib diff --git a/src/Debug/Debugger.php b/src/Debug/Debugger.php index 821c6ede..ed251f77 100644 --- a/src/Debug/Debugger.php +++ b/src/Debug/Debugger.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Debug\Vanilla\Debugger as Slytherin; /** - * Debugger + * @deprecated since ~0.8, use "Vanilla\Debugger" instead. * - * NOTE: To be removed in v1.0.0. Use "VanillaDebugger" instead. + * Debugger * * @package Slytherin * @author Rougin Gutib diff --git a/src/Debug/DebuggerInterface.php b/src/Debug/DebuggerInterface.php index a632cdeb..9adefa6a 100644 --- a/src/Debug/DebuggerInterface.php +++ b/src/Debug/DebuggerInterface.php @@ -3,9 +3,9 @@ namespace Rougin\Slytherin\Debug; /** - * Debugger Interface + * @deprecated since ~0.9, use "ErrorHandlerInterface" instead. * - * NOTE: To be removed in v1.0.0. Use "ErrorHandlerInterface" instead. + * Debugger Interface * * @package Slytherin * @author Rougin Gutib diff --git a/src/Debug/ErrorHandler.php b/src/Debug/ErrorHandler.php index 3907046e..3b302e11 100644 --- a/src/Debug/ErrorHandler.php +++ b/src/Debug/ErrorHandler.php @@ -26,8 +26,9 @@ public function __construct($environment = 'development') } /** + * @deprecated since ~0.9, already not part of the "ErrorHandlerInterface". + * * Sets up the environment to be used. - * NOTE: To be removed in v1.0.0. It is not part of the "ErrorHandlerInterface". * * @param string $environment * @return self @@ -40,8 +41,9 @@ public function setEnvironment($environment) } /** + * @deprecated since ~0.9, already not part of the "ErrorHandlerInterface". + * * Returns the specified environment. - * NOTE: To be removed in v1.0.0. It is not part of the "ErrorHandlerInterface". * * @return string */ diff --git a/src/Debug/Vanilla/Debugger.php b/src/Debug/Vanilla/Debugger.php index 211a3b1a..8479e416 100644 --- a/src/Debug/Vanilla/Debugger.php +++ b/src/Debug/Vanilla/Debugger.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Debug\VanillaErrorHandler; /** - * Debugger + * @deprecated since ~0.9, use "VanillaErrorHandler" instead. * - * NOTE: To be removed in v1.0.0. Use "VanillaErrorHandler" instead. + * Debugger * * @package Slytherin * @author Rougin Gutib diff --git a/src/Debug/VanillaErrorHandler.php b/src/Debug/VanillaErrorHandler.php index a3114b02..412943c4 100644 --- a/src/Debug/VanillaErrorHandler.php +++ b/src/Debug/VanillaErrorHandler.php @@ -3,9 +3,9 @@ namespace Rougin\Slytherin\Debug; /** - * Error Handler + * @deprecated since ~0.9, use "ErrorHandler" instead. * - * NOTE: To be removed in v1.0.0. Use "ErrorHandler" instead. + * Error Handler * * @package Slytherin * @author Rougin Gutib diff --git a/src/Debug/Whoops/Debugger.php b/src/Debug/Whoops/Debugger.php index e4a818dc..46a286e0 100644 --- a/src/Debug/Whoops/Debugger.php +++ b/src/Debug/Whoops/Debugger.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Debug\WhoopsErrorHandler; /** - * Debugger + * @deprecated since ~0.9, use "WhoopsErrorHandler" instead. * - * NOTE: To be removed in v1.0.0. Use "WhoopsErrorHandler" instead. + * Debugger * * @package Slytherin * @author Rougin Gutib diff --git a/src/Debug/WhoopsDebugger.php b/src/Debug/WhoopsDebugger.php index 95bd9830..8dcb4568 100644 --- a/src/Debug/WhoopsDebugger.php +++ b/src/Debug/WhoopsDebugger.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Debug\Whoops\Debugger as Slytherin; /** - * Whoops Debugger + * @deprecated since ~0.8, use "Whoops\Debugger" instead. * - * NOTE: To be removed in v1.0.0. Use "Whoops\Debugger" instead. + * Whoops Debugger * * @package Slytherin * @author Rougin Gutib diff --git a/src/Debug/WhoopsErrorHandler.php b/src/Debug/WhoopsErrorHandler.php index 3c5b7af4..edd4109c 100644 --- a/src/Debug/WhoopsErrorHandler.php +++ b/src/Debug/WhoopsErrorHandler.php @@ -39,8 +39,9 @@ public function __construct(Run $whoops, $environment = 'development') } /** + * @deprecated since ~0.9, already not part of the "ErrorHandlerInterface". + * * Sets up the environment to be used. - * NOTE: To be removed in v1.0.0. It is not part of the "ErrorHandlerInterface". * * @param string $environment * @return self @@ -53,8 +54,9 @@ public function setEnvironment($environment) } /** + * @deprecated since ~0.9, already not part of the "ErrorHandlerInterface". + * * Returns the specified environment. - * NOTE: To be removed in v1.0.0. It is not part of the "ErrorHandlerInterface". * * @return string */ @@ -64,8 +66,9 @@ public function getEnvironment() } /** + * @deprecated since ~0.9, use magic method "__call" instead. + * * Returns a listing of handlers. - * NOTE: To be removed in v1.0.0. Use the magic method "__call" instead. * * @return \Whoops\Handler\HandlerInterface[] */ @@ -91,8 +94,9 @@ public function display() } /** + * @deprecated since ~0.9, use magic method "__call" instead. + * * Sets a handler. - * NOTE: To be removed in v1.0.0. Use __call" instead. * * @param \Whoops\Handler\HandlerInterface|callable $handler * @return void diff --git a/src/Dispatching/BaseRouter.php b/src/Dispatching/BaseRouter.php index d9abeb1d..c81cd917 100644 --- a/src/Dispatching/BaseRouter.php +++ b/src/Dispatching/BaseRouter.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Routing\Router as Slytherin; /** - * Base Router + * @deprecated since ~0.9, use "Routing\Router" instead. * - * NOTE: To be removed in v1.0.0. Use "Routing\Router" instead. + * Base Router * * @package Slytherin * @author Rougin Gutib diff --git a/src/Dispatching/Dispatcher.php b/src/Dispatching/Dispatcher.php index 7eb09915..59773914 100644 --- a/src/Dispatching/Dispatcher.php +++ b/src/Dispatching/Dispatcher.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Dispatching\Vanilla\Dispatcher as Slytherin; /** - * Dispatcher + * @deprecated since ~0.8, use "Vanilla\Dispatcher" instead. * - * NOTE: To be removed in v1.0.0. Use "Vanilla\Dispatcher" instead. + * Dispatcher * * @package Slytherin * @author Rougin Gutib diff --git a/src/Dispatching/DispatcherInterface.php b/src/Dispatching/DispatcherInterface.php index ba7bded3..7cb728f1 100644 --- a/src/Dispatching/DispatcherInterface.php +++ b/src/Dispatching/DispatcherInterface.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Routing\DispatcherInterface as Slytherin; /** - * Dispatcher Interface + * @deprecated since ~0.9, use "Routing\DispatcherInterface" instead. * - * NOTE: To be removed in v1.0.0. Use "Routing\DispatcherInterface" instead. + * Dispatcher Interface * * @package Slytherin * @author Rougin Gutib diff --git a/src/Dispatching/FastRoute/Dispatcher.php b/src/Dispatching/FastRoute/Dispatcher.php index 5dce7faa..d9fd4f9b 100644 --- a/src/Dispatching/FastRoute/Dispatcher.php +++ b/src/Dispatching/FastRoute/Dispatcher.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Routing\FastRoute\Dispatcher as Slytherin; /** - * FastRoute Dispatcher + * @deprecated since ~0.9, use "Routing\FastRoute\Dispatcher" instead. * - * NOTE: To be removed in v1.0.0. Use "Routing\FastRoute\Dispatcher" instead. + * FastRoute Dispatcher * * @package Slytherin * @author Rougin Gutib diff --git a/src/Dispatching/FastRoute/Router.php b/src/Dispatching/FastRoute/Router.php index b6ef7074..bf30c39e 100644 --- a/src/Dispatching/FastRoute/Router.php +++ b/src/Dispatching/FastRoute/Router.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Routing\FastRoute\Router as Slytherin; /** - * FastRoute Router + * @deprecated since ~0.9, use "Routing\FastRoute\Router" instead. * - * NOTE: To be removed in v1.0.0. Use "Routing\FastRoute\Router" instead. + * FastRoute Router * * @package Slytherin * @author Rougin Gutib diff --git a/src/Dispatching/Phroute/Dispatcher.php b/src/Dispatching/Phroute/Dispatcher.php index 1b15f81f..7f5d9d57 100644 --- a/src/Dispatching/Phroute/Dispatcher.php +++ b/src/Dispatching/Phroute/Dispatcher.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Routing\Phroute\Dispatcher as Slytherin; /** - * Phroute Dispatcher + * @deprecated since ~0.9, use "Routing\Phroute\Dispatcher" instead. * - * NOTE: To be removed in v1.0.0. Use "Routing\Phroute\Dispatcher" instead. + * Phroute Dispatcher * * @package Slytherin * @author Rougin Gutib diff --git a/src/Dispatching/Phroute/Router.php b/src/Dispatching/Phroute/Router.php index 08d23dfb..cf0a0d99 100644 --- a/src/Dispatching/Phroute/Router.php +++ b/src/Dispatching/Phroute/Router.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Routing\Phroute\Router as Slytherin; /** - * Phroute Router + * @deprecated since ~0.9, use "Routing\Phroute\Router" instead. * - * NOTE: To be removed in v1.0.0. Use "Routing\Phroute\Router" instead. + * Phroute Router * * @package Slytherin * @author Rougin Gutib diff --git a/src/Dispatching/Router.php b/src/Dispatching/Router.php index f17fc3b0..c0910af0 100644 --- a/src/Dispatching/Router.php +++ b/src/Dispatching/Router.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Dispatching\Vanilla\Router as Slytherin; /** - * Dispatcher + * @deprecated since ~0.8, use "Vanilla\Router" instead. * - * NOTE: To be removed in v1.0.0. Use "Vanilla\Router" instead. + * Dispatcher * * @package Slytherin * @author Rougin Gutib diff --git a/src/Dispatching/RouterInterface.php b/src/Dispatching/RouterInterface.php index dadde08b..129238f8 100644 --- a/src/Dispatching/RouterInterface.php +++ b/src/Dispatching/RouterInterface.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Routing\RouterInterface as Slytherin; /** - * Router Interface + * @deprecated since ~0.9, use "Routing\RouterInterface" instead. * - * NOTE: To be removed in v1.0.0. Use "Routing\RouterInterface" instead. + * Router Interface * * @package Slytherin * @author Rougin Gutib diff --git a/src/Dispatching/Vanilla/Dispatcher.php b/src/Dispatching/Vanilla/Dispatcher.php index 7f830ce1..b09773a4 100644 --- a/src/Dispatching/Vanilla/Dispatcher.php +++ b/src/Dispatching/Vanilla/Dispatcher.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Routing\Vanilla\Dispatcher as Slytherin; /** - * Dispatcher + * @deprecated since ~0.9, use "Routing\Vanilla\Dispatcher" instead. * - * NOTE: To be removed in v1.0.0. Use "Routing\Vanilla\Dispatcher" instead. + * Dispatcher * * @package Slytherin * @author Rougin Gutib diff --git a/src/Dispatching/Vanilla/Router.php b/src/Dispatching/Vanilla/Router.php index e58e3b71..c0a8ee74 100644 --- a/src/Dispatching/Vanilla/Router.php +++ b/src/Dispatching/Vanilla/Router.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Routing\Vanilla\Router as Slytherin; /** - * Dispatcher + * @deprecated since ~0.9, use "Routing\Vanilla\Router" instead. * - * NOTE: To be removed in v1.0.0. Use "Routing\Vanilla\Router" instead. + * Dispatcher * * @package Slytherin * @author Rougin Gutib diff --git a/src/ErrorHandler/ErrorHandlerInterface.php b/src/ErrorHandler/ErrorHandlerInterface.php index d65d1277..af4bd558 100644 --- a/src/ErrorHandler/ErrorHandlerInterface.php +++ b/src/ErrorHandler/ErrorHandlerInterface.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Debug\DebuggerInterface; /** - * Error Handler Interface + * @deprecated since ~0.4, use "Debug\DebuggerInterface" instead. * - * NOTE: To be removed in v1.0.0. Use "Debug\DebuggerInterface" instead. + * Error Handler Interface * * @package Slytherin * @author Rougin Gutib diff --git a/src/ErrorHandler/Whoops.php b/src/ErrorHandler/Whoops.php index b415f675..d6e672cb 100644 --- a/src/ErrorHandler/Whoops.php +++ b/src/ErrorHandler/Whoops.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Debug\Debugger; /** - * Debugger + * @deprecated since ~0.4, use "Debug\Debugger" instead. * - * NOTE: To be removed in v1.0.0. Use "Debug\Debugger" instead. + * Debugger * * @package Slytherin * @author Rougin Gutib diff --git a/src/IoC/Auryn.php b/src/IoC/Auryn.php index 678855be..7e937782 100644 --- a/src/IoC/Auryn.php +++ b/src/IoC/Auryn.php @@ -3,9 +3,9 @@ namespace Rougin\Slytherin\IoC; /** - * Auryn Container + * @deprecated since ~0.4, use "AurynContainer" instead. * - * NOTE: To be removed in v1.0.0. Use "AurynContainer" instead. + * Auryn Container * * @package Slytherin * @author Rougin Gutib diff --git a/src/IoC/Auryn/Container.php b/src/IoC/Auryn/Container.php index da092167..43d382e0 100644 --- a/src/IoC/Auryn/Container.php +++ b/src/IoC/Auryn/Container.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Container\AurynContainer; /** - * Auryn Container + * @deprecated since ~0.4, use "Container\AurynContainer" instead. * - * NOTE: To be removed in v1.0.0. Use "Container\AurynContainer" instead. + * Auryn Container * * @package Slytherin * @author Rougin Gutib diff --git a/src/IoC/AurynContainer.php b/src/IoC/AurynContainer.php index 5e92a9a7..b3ddadb8 100644 --- a/src/IoC/AurynContainer.php +++ b/src/IoC/AurynContainer.php @@ -3,9 +3,9 @@ namespace Rougin\Slytherin\IoC; /** - * Auryn Container + * @deprecated since ~0.7, use "Auryn\Container" instead. * - * NOTE: To be removed in v1.0.0. Use "Auryn\Container" instead. + * Auryn Container * * @package Slytherin * @author Rougin Gutib diff --git a/src/IoC/BaseContainer.php b/src/IoC/BaseContainer.php index b7c6654f..22c36a63 100644 --- a/src/IoC/BaseContainer.php +++ b/src/IoC/BaseContainer.php @@ -3,9 +3,9 @@ namespace Rougin\Slytherin\IoC; /** - * Base Container + * @deprecated since ~0.9, use "Container" instead. * - * NOTE: To be removed in v1.0.0. Use "Container" instead. + * Base Container * * @package Slytherin * @author Rougin Gutib diff --git a/src/IoC/Container.php b/src/IoC/Container.php index 03fba8ad..66dfc9d1 100644 --- a/src/IoC/Container.php +++ b/src/IoC/Container.php @@ -3,9 +3,9 @@ namespace Rougin\Slytherin\IoC; /** - * Container + * @deprecated since ~0.8, use "Vanilla\Container" instead. * - * NOTE: To be removed in v1.0.0. Use "Vanilla\Container" instead. + * Container * * @package Slytherin * @author Rougin Gutib diff --git a/src/IoC/ContainerInterface.php b/src/IoC/ContainerInterface.php index 1dd4c6d8..d879341c 100644 --- a/src/IoC/ContainerInterface.php +++ b/src/IoC/ContainerInterface.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Container\ContainerInterface as Slytherin; /** - * Dependency Injection Container Interface + * @deprecated since ~0.9, use "Container\ContainerInterface" instead. * - * NOTE: To be removed in v1.0.0. Use "Container\ContainerInterface" instead. + * Dependency Injection Container Interface * * @package Slytherin * @author Rougin Gutib diff --git a/src/IoC/DependencyInjectorInterface.php b/src/IoC/DependencyInjectorInterface.php index d168907c..64bffd3d 100644 --- a/src/IoC/DependencyInjectorInterface.php +++ b/src/IoC/DependencyInjectorInterface.php @@ -3,9 +3,9 @@ namespace Rougin\Slytherin\IoC; /** - * Dependency Injector Interface + * @deprecated since ~0.4, use "ContainerInterface" instead. * - * An interface for handling third party dependency injection containers. + * Dependency Injector Interface * * @package Slytherin * @author Rougin Royce Gutib diff --git a/src/IoC/League/Container.php b/src/IoC/League/Container.php index 1261ab78..35ebaa2e 100644 --- a/src/IoC/League/Container.php +++ b/src/IoC/League/Container.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Container\LeagueContainer; /** - * LeagueContainer + * @deprecated since ~0.9, use "Container\LeagueContainer" instead. * - * NOTE: To be removed in v1.0.0. Use "Container\LeagueContainer" instead. + * LeagueContainer * * @package Slytherin * @author Rougin Gutib diff --git a/src/IoC/LeagueContainer.php b/src/IoC/LeagueContainer.php index 2540eb83..42d21df0 100644 --- a/src/IoC/LeagueContainer.php +++ b/src/IoC/LeagueContainer.php @@ -3,9 +3,9 @@ namespace Rougin\Slytherin\IoC; /** - * League Container + * @deprecated since ~0.8, use "League\Container" instead. * - * NOTE: To be removed in v1.0.0. Use "League\Container" instead. + * League Container * * @package Slytherin * @author Rougin Gutib diff --git a/src/IoC/Vanilla/Container.php b/src/IoC/Vanilla/Container.php index ca3a4a79..a317750c 100644 --- a/src/IoC/Vanilla/Container.php +++ b/src/IoC/Vanilla/Container.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Container\VanillaContainer; /** - * Container + * @deprecated since ~0.9, use "Container\VanillaContainer" instead. * - * NOTE: To be removed in v1.0.0. Use "Container\VanillaContainer" instead. + * Container * * @package Slytherin * @author Rougin Gutib diff --git a/src/IoC/Vanilla/Exception/NotFoundException.php b/src/IoC/Vanilla/Exception/NotFoundException.php index 6aeb0c68..1093e0e5 100644 --- a/src/IoC/Vanilla/Exception/NotFoundException.php +++ b/src/IoC/Vanilla/Exception/NotFoundException.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Container\Exception\NotFoundException as Slytherin; /** - * Not Found Exception + * @deprecated since ~0.9, use "Container\Exception\NotFoundException" instead. * - * NOTE: To be removed in v1.0.0. Use "Container\Exception\NotFoundException" instead. + * Not Found Exception * * @package Slytherin * @author Rougin Gutib diff --git a/src/Middleware/Delegate.php b/src/Middleware/Delegate.php index 57583e7c..9ac7a936 100644 --- a/src/Middleware/Delegate.php +++ b/src/Middleware/Delegate.php @@ -3,9 +3,9 @@ namespace Rougin\Slytherin\Middleware; /** - * Delegate + * @deprecated since ~0.9, use "Handler" instead. * - * NOTE: To be removed in v1.0.0. Use "Handler" instead. + * Delegate * * @package Slytherin * @author Rougin Gutib diff --git a/src/Middleware/Dispatcher.php b/src/Middleware/Dispatcher.php index ac6fd859..085e6c1e 100644 --- a/src/Middleware/Dispatcher.php +++ b/src/Middleware/Dispatcher.php @@ -109,8 +109,9 @@ public function setStack($stack) } /** + * @deprecated since ~0.9, use "getStack" instead. + * * Returns the list of added middlewares. - * NOTE: To be removed in v1.0.0. Use "getStack" instead. * * @return \Rougin\Slytherin\Middleware\MiddlewareInterface[] */ diff --git a/src/Middleware/Middleware.php b/src/Middleware/Middleware.php index c06540b7..2d979dd4 100644 --- a/src/Middleware/Middleware.php +++ b/src/Middleware/Middleware.php @@ -3,9 +3,9 @@ namespace Rougin\Slytherin\Middleware; /** - * Middleware + * @deprecated since ~0.9, use "Dispatcher" instead. * - * NOTE: To be removed in v1.0.0. Use "Dispatcher" instead. + * Middleware * * @package Slytherin * @author Rougin Gutib diff --git a/src/Middleware/Stratigility/Middleware.php b/src/Middleware/Stratigility/Middleware.php index 8552fe58..ddd3939d 100644 --- a/src/Middleware/Stratigility/Middleware.php +++ b/src/Middleware/Stratigility/Middleware.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Middleware\StratigilityDispatcher; /** - * Stratigility Middleware + * @deprecated since ~0.9, use "Middleware\StratigilityDispatcher" instead. * - * NOTE: To be removed in v1.0.0. Use "Middleware\StratigilityDispatcher" instead. + * Stratigility Middleware * * @package Slytherin * @author Rougin Gutib diff --git a/src/Middleware/StratigilityMiddleware.php b/src/Middleware/StratigilityMiddleware.php index 95dbde79..71e51dcc 100644 --- a/src/Middleware/StratigilityMiddleware.php +++ b/src/Middleware/StratigilityMiddleware.php @@ -3,9 +3,9 @@ namespace Rougin\Slytherin\Middleware; /** - * Stratigility Middleware + * @deprecated since ~0.7, use "Stratigility\Middleware" instead. * - * NOTE: To be removed in v1.0.0. Use "Stratigility\Middleware" instead. + * Stratigility Middleware * * @package Slytherin * @author Rougin Gutib diff --git a/src/Middleware/Vanilla/Delegate.php b/src/Middleware/Vanilla/Delegate.php index 90c4b25a..23d36775 100644 --- a/src/Middleware/Vanilla/Delegate.php +++ b/src/Middleware/Vanilla/Delegate.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Middleware\Delegate as Slytherin; /** - * Delegate + * @deprecated since ~0.9, use "Delegate" instead. * - * NOTE: To be removed in v1.0.0. Use "Delegate" instead. + * Delegate * * @package Slytherin * @author Rougin Gutib diff --git a/src/Middleware/Vanilla/Middleware.php b/src/Middleware/Vanilla/Middleware.php index ca7e1250..a4eb894f 100644 --- a/src/Middleware/Vanilla/Middleware.php +++ b/src/Middleware/Vanilla/Middleware.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Middleware\Middleware as Slytherin; /** - * Middleware + * @deprecated since ~0.9, use "Middleware" instead. * - * NOTE: To be removed in v1.0.0. Use "Middleware" instead. + * Middleware * * @package Slytherin * @author Rougin Gutib diff --git a/src/Middleware/VanillaDelegate.php b/src/Middleware/VanillaDelegate.php index e0da8f42..ed0924fb 100644 --- a/src/Middleware/VanillaDelegate.php +++ b/src/Middleware/VanillaDelegate.php @@ -3,9 +3,9 @@ namespace Rougin\Slytherin\Middleware; /** - * Delegate + * @deprecated since ~0.9, use "Vanilla\Delegate" instead. * - * NOTE: To be removed in v1.0.0. Use "Vanilla\Delegate" instead. + * Delegate * * @package Slytherin * @author Rougin Gutib diff --git a/src/Middleware/VanillaMiddleware.php b/src/Middleware/VanillaMiddleware.php index a93708ee..fcc0a31e 100644 --- a/src/Middleware/VanillaMiddleware.php +++ b/src/Middleware/VanillaMiddleware.php @@ -3,9 +3,9 @@ namespace Rougin\Slytherin\Middleware; /** - * Middleware + * @deprecated since ~0.9, use "Vanilla\Middleware" instead. * - * NOTE: To be removed in v1.0.0. Use "Vanilla\Middleware" instead. + * Middleware * * @package Slytherin * @author Rougin Gutib diff --git a/src/Routing/FastRoute/Dispatcher.php b/src/Routing/FastRoute/Dispatcher.php index f1e25b13..219bc405 100644 --- a/src/Routing/FastRoute/Dispatcher.php +++ b/src/Routing/FastRoute/Dispatcher.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Routing\FastRouteDispatcher; /** - * FastRoute Dispatcher + * @deprecated since ~0.9, use "Routing\FastRouteDispatcher" instead. * - * NOTE: To be removed in v1.0.0. Use "Routing\FastRouteDispatcher" instead. + * FastRoute Dispatcher * * @package Slytherin * @author Rougin Gutib diff --git a/src/Routing/FastRoute/Router.php b/src/Routing/FastRoute/Router.php index f8ce23fa..3f8f2648 100644 --- a/src/Routing/FastRoute/Router.php +++ b/src/Routing/FastRoute/Router.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Routing\FastRouteRouter; /** - * FastRoute Router + * @deprecated since ~0.9, use "Routing\FastRouteRouter" instead. * - * NOTE: To be removed in v1.0.0. Use "Routing\FastRouteRouter" instead. + * FastRoute Router * * @package Slytherin * @author Rougin Gutib diff --git a/src/Routing/Phroute/Dispatcher.php b/src/Routing/Phroute/Dispatcher.php index c5dad492..53b90bad 100644 --- a/src/Routing/Phroute/Dispatcher.php +++ b/src/Routing/Phroute/Dispatcher.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Routing\PhrouteDispatcher; /** - * Phroute Dispatcher + * @deprecated since ~0.9, use "Routing\PhrouteDispatcher" instead. * - * NOTE: To be removed in v1.0.0. Use "Routing\PhrouteDispatcher" instead. + * Phroute Dispatcher * * @package Slytherin * @author Rougin Gutib diff --git a/src/Routing/Phroute/Router.php b/src/Routing/Phroute/Router.php index f501831b..2104108e 100644 --- a/src/Routing/Phroute/Router.php +++ b/src/Routing/Phroute/Router.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Routing\PhrouteRouter; /** - * Phroute Router + * @deprecated since ~0.9, use "Routing\PhrouteRouter" instead. * - * NOTE: To be removed in v1.0.0. Use "Routing\PhrouteRouter" instead. + * Phroute Router * * @package Slytherin * @author Rougin Gutib diff --git a/src/Routing/Router.php b/src/Routing/Router.php index ddbc3278..37ccb229 100644 --- a/src/Routing/Router.php +++ b/src/Routing/Router.php @@ -109,8 +109,9 @@ public function add($method, $uri, $handler, $middlewares = array()) } /** + * @deprecated since ~0.9, use "add" instead. + * * Adds a new raw route. - * NOTE: To be removed in v1.0.0. Use "add" instead. * * @param string $method * @param string $route @@ -124,8 +125,9 @@ public function addRoute($method, $route, $handler, $middlewares = array()) } /** + * @deprecated since ~0.9, use "merge" instead. + * * Merges a listing of parsed routes to current one. - * NOTE: To be removed in v1.0.0. Use "merge" instead. * * @param \Rougin\Slytherin\Routing\RouteInterface[] $routes * @return self @@ -188,8 +190,9 @@ public function get($uri, $handler, $middlewares = array()) } /** + * @deprecated since ~0.9, use "retrieve" instead. + * * Returns a specific route based on the specified HTTP method and URI. - * NOTE: To be removed in v1.0.0. Use "retrieve" instead. * * @param string $method * @param string $uri @@ -201,8 +204,9 @@ public function getRoute($method, $uri) } /** + * @deprecated since ~0.9, use "routes" instead. + * * Returns a listing of available routes. - * NOTE: To be removed in v1.0.0. Use "routes" instead. * * @return \Rougin\Slytherin\Routing\RouteInterface[] */ @@ -331,8 +335,9 @@ public function restful($uri, $class, $middlewares = array()) } /** + * @deprecated since ~0.9, use "find" instead. + * * Finds a specific route based on the specified HTTP method and URI. - * NOTE: To be removed in v1.0.0. Use "find" instead. * * @param string $method * @param string $uri @@ -354,8 +359,9 @@ public function routes() } /** + * @deprecated since ~0.9, use "prefix" instead. + * * Sets a prefix for the succeeding route endpoints. - * NOTE: To be removed in v1.0.0. Use "prefix" instead. * * @param string $prefix * @param string $namespace diff --git a/src/Routing/Vanilla/Dispatcher.php b/src/Routing/Vanilla/Dispatcher.php index 497f9c82..c0a5b10b 100644 --- a/src/Routing/Vanilla/Dispatcher.php +++ b/src/Routing/Vanilla/Dispatcher.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Routing\Dispatcher as Slytherin; /** - * Dispatcher + * @deprecated since ~0.9, use "Routing\Dispatcher" instead. * - * NOTE: To be removed in v1.0.0. Use "Routing\Dispatcher" instead. + * Dispatcher * * @package Slytherin * @author Rougin Gutib diff --git a/src/Routing/Vanilla/Router.php b/src/Routing/Vanilla/Router.php index d5b3ba47..3421c376 100644 --- a/src/Routing/Vanilla/Router.php +++ b/src/Routing/Vanilla/Router.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Routing\Router as Slytherin; /** - * Router + * @deprecated since ~0.9, use "Routing\Router" instead. * - * NOTE: To be removed in v1.0.0. Use "Routing\Router" instead. + * Router * * @package Slytherin * @author Rougin Gutib diff --git a/src/Template/Twig.php b/src/Template/Twig.php index 5cceec26..8f737051 100644 --- a/src/Template/Twig.php +++ b/src/Template/Twig.php @@ -3,9 +3,9 @@ namespace Rougin\Slytherin\Template; /** - * Twig Renderer + * @deprecated since ~0.4, use "Twig\Renderer" instead. * - * NOTE: To be removed in v1.0.0. Use "Twig\Renderer" instead. + * Twig Renderer * * @package Slytherin * @author Rougin Gutib diff --git a/src/Template/Twig/Renderer.php b/src/Template/Twig/Renderer.php index 316f5535..f5938911 100644 --- a/src/Template/Twig/Renderer.php +++ b/src/Template/Twig/Renderer.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Template\TwigRenderer; /** - * Twig Renderer + * @deprecated since ~0.9, use "TwigRenderer" instead. * - * NOTE: To be removed in v1.0.0. Use "TwigRenderer" instead. + * Twig Renderer * * @package Slytherin * @author Rougin Gutib diff --git a/src/Template/Vanilla/Renderer.php b/src/Template/Vanilla/Renderer.php index 4e8dde86..457d46a2 100644 --- a/src/Template/Vanilla/Renderer.php +++ b/src/Template/Vanilla/Renderer.php @@ -5,9 +5,9 @@ use Rougin\Slytherin\Template\Renderer as Slytherin; /** - * Renderer + * @deprecated since ~0.9, use "Renderer" instead. * - * NOTE: To be removed in v1.0.0. Use "Renderer" instead. + * Renderer * * @package Slytherin * @author Rougin Gutib diff --git a/src/Template/VanillaRenderer.php b/src/Template/VanillaRenderer.php index cd636c3c..86a71818 100644 --- a/src/Template/VanillaRenderer.php +++ b/src/Template/VanillaRenderer.php @@ -3,9 +3,9 @@ namespace Rougin\Slytherin\Template; /** - * Renderer + * @deprecated since ~0.9, use "Vanilla\Renderer" instead. * - * NOTE: To be removed in v1.0.0. Use "Vanilla\Renderer" instead. + * Renderer * * @package Slytherin * @author Rougin Gutib diff --git a/tests/IoC/Auryn/ContainerTest.php b/tests/IoC/Auryn/ContainerTest.php index bbb281d9..5a3bc886 100644 --- a/tests/IoC/Auryn/ContainerTest.php +++ b/tests/IoC/Auryn/ContainerTest.php @@ -9,8 +9,6 @@ use Rougin\Slytherin\Testcase; /** - * NOTE: To be removed in v1.0.0. - * * @package Slytherin * @author Rougin Gutib */ diff --git a/tests/IoC/League/ContainerTest.php b/tests/IoC/League/ContainerTest.php index 618d7819..8ae8e40a 100644 --- a/tests/IoC/League/ContainerTest.php +++ b/tests/IoC/League/ContainerTest.php @@ -8,8 +8,6 @@ use Rougin\Slytherin\Testcase; /** - * NOTE: To be removed in v1.0.0. - * * @package Slytherin * @author Rougin Gutib */ diff --git a/tests/IoC/Vanilla/ContainerTest.php b/tests/IoC/Vanilla/ContainerTest.php index 4dd63426..1565b46c 100644 --- a/tests/IoC/Vanilla/ContainerTest.php +++ b/tests/IoC/Vanilla/ContainerTest.php @@ -10,8 +10,6 @@ use Rougin\Slytherin\Testcase; /** - * NOTE: To be removed in v1.0.0. - * * @package Slytherin * @author Rougin Gutib */