浏览代码

removed output() methods, which are only shortcut for 'echo render'

Fabien Potencier 14 年之前
父节点
当前提交
e1a3cd0446

+ 0 - 9
src/Symfony/Bundle/CompatAssetsBundle/Templating/Helper/JavascriptsHelper.php

@@ -82,15 +82,6 @@ class JavascriptsHelper extends Helper
         return $html;
     }
 
-    /**
-     * Outputs HTML representation of the links to JavaScripts.
-     *
-     */
-    public function output()
-    {
-        echo $this->render();
-    }
-
     /**
      * Returns a string representation of this helper as HTML.
      *

+ 0 - 9
src/Symfony/Bundle/CompatAssetsBundle/Templating/Helper/StylesheetsHelper.php

@@ -82,15 +82,6 @@ class StylesheetsHelper extends Helper
         return $html;
     }
 
-    /**
-     * Outputs HTML representation of the links to stylesheets.
-     *
-     */
-    public function output()
-    {
-        echo $this->render();
-    }
-
     /**
      * Returns a string representation of this helper as HTML.
      *

+ 0 - 13
src/Symfony/Bundle/FrameworkBundle/Templating/Helper/ActionsHelper.php

@@ -33,19 +33,6 @@ class ActionsHelper extends Helper
         $this->kernel = $kernel;
     }
 
-    /**
-     * Outputs the Response content for a given controller.
-     *
-     * @param string $controller A controller name to execute (a string like BlogBundle:Post:index), or a relative URI
-     * @param array  $options    An array of options
-     *
-     * @see render()
-     */
-    public function output($controller, array $attributes = array(), array $options = array())
-    {
-        echo $this->render($controller, $attributes, $options);
-    }
-
     /**
      * Returns the Response content for a given controller or URI.
      *