All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Support for PHP 7.x
- Scalar type hints
- Support for PHP 5.x
- Added dependency to
opis/pattern
- This is a massive refactor of the library
- Added
Opis\Routing\Callback::getArguments
method - Added a 3rd optional argument to
Opis\Routing\Compiler::bind
method - Added a 2nd optional argument to
Opis\Routing\CompiledExpression::bind
method
- Modified
Opis\Routing\Dispatcher
class Opis\Routing\Router::__construct
accepts now 4th optional argument representing an array of special values.
- Added
phpunit/phpunit
version4.8.*
as a dependency torequire-dev
- Added tests
- Added
Opis\Routing\Route::wrapClosures
andOpis\Routing\Route::unwrapClosures
methods - Added the
Opis\Routing\Router::getSpecialValues
method
- Removed
branch-alias
property fromcomposer.json
file - Removed
Opis\Routing\CompiledPattern
class - Removed
Opis\Routing\Route::getUnmapFunction
andOpis\Routing\Route::getMapFunction
methods
- Updated
opis/closure
library dependency to version^2.0.0
- The
Opis\Routing\Route::getCompiler
is no longer a static method - Changed the way an instance of
Opis\Routing\Route
is serialized - The
Opis\Routing\DispatcherResolver::resolve
,Opis\Routing\Dispatcher::dispatch
and theOpis\Routing\FilterInterface::pass
methods, now receive as their first argument an instance ofOpis\Routing\Router
. All the classes implementing theOpis\Routing\FilterInterface
interface were modified to support these changes. - Modifed the
Opis\Routing\Router::route
method - Modified the way that
Opis\Routing\Dispatcher
executes a route's callback
- The new
Opis\Routing\Callback
class was added - Added new exception class
Opis\Routing\CallableExpectedException
- All the interfaces that were under the
Opis\Routing\Contracts
namespace have been removed - The
Opis\Routing\Dispatcher
'sinvokeAction
method was removed
- Routes supports now all types of callable
-
FilterInterface
was moved toOpis\Routing
namespace - Updated
opis/closure
library dependency to version~2.0
- Fixed a major bug.
Route
,Compiler
,Pattern
andCompiledPattern
classes weren't serializable.
- Added support for late binding.
- Autoload file
- Several bugs in
Opis\Routing\Compiler
class.
- Modified
Opis\Routing\CompiledRoute
- Added
getMapFunction
and 'getUnmapFunction' protected static methods inOpis\Routing\Route
.
- Fixed a bug in
Opis\Routing\Route::serialize
method.
- Updated
opis/closure
library dependency to version1.3.*
- The protected static variable
$compiler
was removed.
- Fixed a bug in
Opis\Routing\Route
.
- Removed the
Opis\Routing\Contracts\CompilerInterface
argument fromOpis\Routing\Route
constructor method.
- The
getCompiler
method inOpis\Routing\Contracts\RouteInterface
is now declared as static.
- Fixed a major bug in
Opis\Routing\Route
- Started changelog
- Added
getDelimitedPattern
,getCompiledPattern
methods toOpis\Routing\Route
- Modified
Opis\Routing\CompiledExpression
constructor - Modified
Opis\Routing\Router
class to improve performance. - Modified
Opis\Routing\PathFilter
class to improve performance.