Skip to content

Commit 81f34ac

Browse files
committed
fix examples
1 parent 19bbb6f commit 81f34ac

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

examples/config.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
extensions:
22
webimages: DotBlue\WebImages\Extension
33

4+
45
webimages:
56
providers:
67
- DefaultImageProvider(%wwwDir%)

examples/route-with-filters.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
$router = $container->getService('router');
44

5-
$router[] = new DotBlue\WebImages\Route('images/<id>-<width>x<height>.jpg', array(
5+
$route = new DotBlue\WebImages\Application\Route('images/<id>-<width>x<height>.jpg', array(
66
'id' => array(
7-
DotBlue\WebImages\Route::FILTER_IN => function($slug) {
7+
DotBlue\WebImages\Application\Route::FILTER_IN => function($slug) {
88
// ...
99
},
10-
DotBlue\WebImages\Route::FILTER_OUT => function($id) {
10+
DotBlue\WebImages\Application\Route::FILTER_OUT => function($id) {
1111
// ...
1212
},
1313
),
1414
), $container->getByType('DotBlue\WebImages\Generator'));
15+
16+
DotBlue\WebImages\Helpers::prependRoute($router, $route);

tests/WebImages/files/Extension.macros.neon

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
webimages:
2-
3-
41
services:
52
nette.latteFactory: Latte\Engine
63
router: Nette\Application\Routers\RouteList

0 commit comments

Comments
 (0)