Created
March 3, 2018 14:16
-
-
Save rodrigoSyscop/38149e4937da92db784990b457930b69 to your computer and use it in GitHub Desktop.
framework/src/app.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //framework/src/app.php | |
use Symfony\Component\Routing; | |
$routes = new Routing\RouteCollection(); | |
$routes->add( | |
'hello', | |
new Routing\Route( | |
'/hello/{name}', | |
array('name' => 'World') | |
) | |
); | |
$routes->add( | |
'bye', | |
new Routing\Route( | |
'bye' | |
) | |
); | |
return $routes; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment