Migrated templates to plates

This commit is contained in:
Alejandro Celaya
2017-10-12 10:03:14 +02:00
parent 453ca1728e
commit e53ffc8d43
9 changed files with 61 additions and 50 deletions

View File

@@ -37,7 +37,7 @@ class PathVersionMiddleware implements MiddlewareInterface
$uri = $request->getUri();
$path = $uri->getPath();
// If the path does not begin with the version number, prepend v1 by default for retrocompatibility purposes
// If the path does not begin with the version number, prepend v1 by default for BC compatibility purposes
if (strpos($path, '/v') !== 0) {
$parts = explode('/', $path);
// Remove the first empty part and the