Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $dispatcher->setObject('fetch', $di->lazyNew('Memoria\Structure\ImportAction'));public function modifyWebRouter(Container $di)
- {
- ...
- $router = $di->get('web_router');
- $router->add('structure', '/structure/fetch')
- ->setValues(['action' => 'fetch']);
- $router->add('structure.import', '/structure/import')
- ->setValues(['action' => 'import']);
- $router->add('structure.delete', '/structure/delete')
- ->setValues(['action' => 'delete']);
- }
- public function modifyWebDispatcher(Container $di)
- {
- /** @var \Aura\Dispatcher\Dispatcher $dispatcher */
- $dispatcher = $di->get('web_dispatcher');
- ...
- $dispatcher->setObject('fetch', $di->lazyNew('Memoria\Structure\FetchAction'));
- $dispatcher->setObject('import', $di->lazyNew('Memoria\Structure\ImportAction'));
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement