protected function getRouteConfig(Route $annotation)
    {
        return [
            $annotation->getName() => [
                'type' => $annotation->getType(),
                'options' => [
                    'route' => $annotation->getRoute(),
                    'defaults' => $annotation->getDefaults(),
                    'constraints' => $annotation->getConstraints()
                ],
                'priority' => (int) $annotation->getPriority(),
                'may_terminate' => (bool) $annotation->getMayTerminate(),
                'child_routes' => []
            ]
        ];
    }
protected function getRouteConfig(Route $annotation)
    {
        return [
            $annotation->getName() => [
                'type' => $annotation->getType(),
                'options' => [
                    'route' => $annotation->getRoute(),
                    'defaults' => $annotation->getDefaults(),
                    'constraints' => $annotation->getConstraints()
                ],
                'priority' => (int) $annotation->getPriority(),
                'may_terminate' => (bool) $annotation->getMayTerminate(),
                'child_routes' => []
            ]
        ];
    }
protected function getRouteConfig ( Route $ annotation ) { return [ $ annotation -> getName ( ) => [ 'type' => $ annotation -> getType ( ) , 'options' => [ 'route' => $ annotation -> getRoute ( ) , 'defaults' => $ annotation -> getDefaults ( ) , 'constraints' => $ annotation -> getConstraints ( ) ] , 'priority' => ( int ) $ annotation -> getPriority ( ) , 'may_terminate' => ( bool ) $ annotation -> getMayTerminate ( ) , 'child_routes' => [ ] ] ] ; }
Converts annotation into ZF2 route config item.

@param Route $annotation
@return array
Converts annotation into ZF2 route config item .