/ */ return array( 'router' => array( 'routes' => array( 'comments' => array( 'type' => 'Application\Router\Regex', 'options' => array( 'regex' => '/comments?(/(?P.*))?', 'spec' => '/comments/%topic%', 'defaults' => array( 'controller' => 'Comments\Controller\Index', 'action' => 'index', 'topic' => null ), ), ), 'add-comment' => array( 'type' => 'Zend\Mvc\Router\Http\Segment', 'options' => array( 'route' => '/comment[s]/add[/]', 'defaults' => array( 'controller' => 'Comments\Controller\Index', 'action' => 'add' ), ), ), 'edit-comment' => array( 'type' => 'Zend\Mvc\Router\Http\Segment', 'options' => array( 'route' => '/comment[s]/edit/:comment[/]', 'defaults' => array( 'controller' => 'Comments\Controller\Index', 'action' => 'edit' ), ), ), 'delete-comment' => array( 'type' => 'Zend\Mvc\Router\Http\Segment', 'options' => array( 'route' => '/comment[s]/delete/:comment[/]', 'defaults' => array( 'controller' => 'Comments\Controller\Index', 'action' => 'delete' ), ), ), ), ), 'controllers' => array( 'invokables' => array( 'Comments\Controller\Index' => 'Comments\Controller\IndexController' ), ), 'view_manager' => array( 'template_path_stack' => array( __DIR__ . '/../view', ), ), 'view_helpers' => array( 'invokables' => array( 'comments' => 'Comments\View\Helper\Comments' ), ), );