Package com.dubture.symfony.index.model

Examples of com.dubture.symfony.index.model.Route


        assert(routeAnnotation.getClassName().startsWith(SymfonyCoreConstants.ROUTE_ANNOTATION));

        String pattern = (String) routeAnnotation.getArgumentValue(0).getValue();
        String name = (String) routeAnnotation.getArgumentValue("name").getValue();

        return new Route(bundle, controller, action, name, pattern);
    }
View Full Code Here


   
    if (isSymfonyDebugger == false)
      return true;
   
    String routeName = route.getText();   
    Route route = model.findRoute(routeName, project);
   
    if (route == null) {
     
      String message = "The route " + routeName + " does not exist in the project " + project.getElementName();
      if (routeName.length() == 0) {
View Full Code Here

  }

  public Route getRoute() {

    Route route = new Route(getElementName(), routePattern, viewPath);
    return route;
  }
View Full Code Here

      assertTrue(parser.hasRoutes());
     
      Stack<Route> routes = parser.getRoutes();     
      assertEquals(2, routes.size());
     
      Route route = routes.pop();
     
      assertEquals(route.name, "blog_index");
      assertEquals(route.pattern, "/blog");
      assertEquals(route.bundle, "AcmeBlogBundle");
      assertEquals(route.controller, "Blog");
View Full Code Here

 
 
  public Route getRoute() {
   
   
    Route route = new Route("home", "/foo", "AcmeDemoBundle:Demo:index");
   
    return route;
  }
View Full Code Here

TOP

Related Classes of com.dubture.symfony.index.model.Route

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.