Пример #1
0
 private function createRoute($key, $webpage)
 {
     $route = new RoutingRequest();
     $route->setId('fminor.webpage.' . $key);
     $route->setPath($webpage['path']);
     $route->setMethods(array('GET'));
     $route->setController('Default');
     $route->setAction($key);
     return $route;
 }
 public function generate(array $requests, ParametersManager $parManager)
 {
     $twig = new TwigEngine(__DIR__);
     $param = array('routes' => RoutingRequest::filter($requests));
     $this->create('src/Config/', 'routes.php', $twig->render('routes.php.twig', $param));
 }