瀏覽代碼

se quitaron archivos innecesarios

Guillermo Espinoza 8 年之前
父節點
當前提交
0260b837e6
共有 3 個文件被更改,包括 1 次插入20 次删除
  1. 0 17
      Controller/DefaultController.php
  2. 1 2
      EventListener/ActionEventSubscriber.php
  3. 0 1
      Resources/views/Default/index.html.twig

+ 0 - 17
Controller/DefaultController.php

@@ -1,17 +0,0 @@
-<?php
-
-namespace WorkflowBundle\Controller;
-
-use Symfony\Bundle\FrameworkBundle\Controller\Controller;
-use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
-
-class DefaultController extends Controller
-{
-    /**
-     * @Route("/")
-     */
-    public function indexAction()
-    {
-        return $this->render('WorkflowBundle:Default:index.html.twig');
-    }
-}

+ 1 - 2
EventListener/ActionEventSubscriber.php

@@ -38,8 +38,7 @@ class ActionEventSubscriber implements EventSubscriber
     {
         $entity = $args->getEntity();
         if ($entity instanceof Action) {
-            $twigParams = $this->twigParams;
-            $entity->setTwigParams($twigParams);
+            $entity->setTwigParams($this->twigParams);
         }
     }
 

+ 0 - 1
Resources/views/Default/index.html.twig

@@ -1 +0,0 @@
-Hello World!