<?php
/**
 * Perforce Swarm, Community Development
 *
 * @copyright   2015 Perforce Software. All rights reserved
 * @license     Please see LICENSE.txt in top-level folder of this distribution.
 * @version     <release>/<patch>
 */

return array(
    'router' => array(
        'routes' => array(
            'project-readme' => array(
                'type' => 'Zend\Mvc\Router\Http\Segment',
                'options' => array(
                    'route'    => '/project/readme/:project[/]',
                    'defaults' => array(
                        'controller' => 'Markdown\Controller\Index',
                        'action'     => 'project',
                        'project'    => null
                    ),
                ),
            ),
            'project-activity' => array(
                'type' => 'Zend\Mvc\Router\Http\Segment',
                'options' => array(
                    'route'    => '/project[s]/:project/activity[/]',
                    'defaults' => array(
                        'controller' => 'Markdown\Controller\Index',
                        'action'     => 'activity'
                    ),
                ),
            ),
        ),
    ),
    'view_manager' => array(
        'template_map' => array(
            'projects/index/project' => __DIR__ . '/../view/markdown/index/project.phtml',
            'projects/index/activity' => __DIR__ . '/../view/markdown/index/activity.phtml',
        ),
        'template_path_stack'   => array(
            __DIR__ . '/../view',
        ),
    ),
    'controllers' => array(
        'invokables' => array(
            'Markdown\Controller\Index' => 'Markdown\Controller\IndexController',
        ),
    ),
);