PHP Classes

File: vendor/sensio/generator-bundle/Resources/skeleton/bundle/routing.php.twig

Recommend this page to a friend!
  Classes of Murat Cileli   Papernic   vendor/sensio/generator-bundle/Resources/skeleton/bundle/routing.php.twig   Download  
File: vendor/sensio/generator-bundle/Resources/skeleton/bundle/routing.php.twig
Role: Example script
Content type: text/plain
Description: Example script
Class: Papernic
Manage documents colaboratively
Author: By
Last change:
Date: 7 years ago
Size: 464 bytes
 

Contents

Class file image Download
<?php

{% block use_statements %}
use
Symfony\Component\Routing\RouteCollection;
use
Symfony\Component\Routing\Route;
{%
endblock use_statements %}

{%
block definition %}
$collection = new RouteCollection();
{%
endblock definition %}

{%
block body %}
$collection->add('{{ extension_alias }}_homepage', new Route('/', array(
   
'_controller' => '{{ bundle }}:Default:index',
)));
{%
endblock body %}

{%
block return %}
return
$collection;
{%
endblock return %}