flame-org / Modules

Nette modules on the Steroids
http://flame-org.github.io/Modules/
GNU Lesser General Public License v3.0
13 stars 7 forks source link

Nelze užít vnořené routelisty #14

Closed jirinapravnik closed 10 years ago

jirinapravnik commented 10 years ago

Chtěl jsem využít novou syntax, kdy není třeba využívat NetteRouteListMocky. Ale Pokud mám např:

$appList = new RouteList('App');
$appList[] = $frontList = new RouteList('Front');

$frontList[] = new Route('/<presenter>/<action>', 'Homepage:default');
$frontList[] = new Route('index.php', 'AHomepage:default', Route::ONE_WAY);

tak dostanu Argument 1 passed to Flame\Modules\DI\ModulesExtension::createNetteRouteMock() must be an instance of Nette\Application\Routers\Route, instance of Nette\Application\Routers\RouteList given

jsifalda commented 10 years ago

Děkuji za nahlášení.

Mohl by si vyzkoušet? Commit https://github.com/flame-org/Modules/commit/32cfe68e5170a9607b78bf21343c05465aec0cfa to opravuje.

jirinapravnik commented 10 years ago

Nezkoušel jsem tedy přímo tento commit, ale úplně nejnovější a funguje bez problémů. Díky!