Skip to content
Permalink
Browse files

Nette 3

  • Loading branch information...
mabar authored and f3l1x committed Jun 13, 2019
1 parent e57a8df commit a7530f231a55c3b4f38a8dbd16e1c4c2bf2e489e
Showing with 4 additions and 4 deletions.
  1. +3 −3 composer.json
  2. +1 −1 src/ApiRoute.php
@@ -17,8 +17,8 @@
"require": {
"php": "^7.2",
"apitte/core": "^0.6.0",
"nette/application": "~2.4.9",
"nette/http": "~2.4.7"
"nette/application": "~3.0.0",
"nette/http": "~3.0.1"
},
"require-dev": {
"ninjify/nunjuck": "^0.2.0",
@@ -41,7 +41,7 @@
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-master": "0.6.x-dev"
"dev-master": "0.7.x-dev"
}
}
}
@@ -15,7 +15,7 @@ class ApiRoute extends Route
public function __construct(string $prefix, array $metadata = [], int $flags = 0)
{
if ($metadata === []) {
$metadata[Route::PRESENTER_KEY] = self::APITTE_MODULE;
$metadata['presenter'] = self::APITTE_MODULE;
}
parent::__construct(rtrim($prefix, '/') . '/<path .*>', $metadata, $flags);
}

0 comments on commit a7530f2

Please sign in to comment.
You can’t perform that action at this time.