Skip to content

Commit

Permalink
Nette 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar authored and Milan Felix Šulc committed Jul 6, 2019
1 parent e57a8df commit a7530f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -41,7 +41,7 @@
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-master": "0.6.x-dev"
"dev-master": "0.7.x-dev"
}
}
}
2 changes: 1 addition & 1 deletion src/ApiRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a7530f2

Please sign in to comment.