From 4353d1f7a6e3e064c8d3301a53cc1517ca63bdb3 Mon Sep 17 00:00:00 2001 From: Marvin Butkereit Date: Wed, 13 Aug 2014 20:52:02 +0200 Subject: [PATCH 1/2] Fix use mistakes. --- components/console/introduction.rst | 3 +++ components/templating/helpers/assetshelper.rst | 2 ++ 2 files changed, 5 insertions(+) diff --git a/components/console/introduction.rst b/components/console/introduction.rst index 5d1c8b31b5e..7f0e02008dd 100644 --- a/components/console/introduction.rst +++ b/components/console/introduction.rst @@ -140,6 +140,9 @@ output. For example:: It is possible to define your own styles using the class :class:`Symfony\\Component\\Console\\Formatter\\OutputFormatterStyle`:: + use Symfony\Component\Console\Formatter\OutputFormatterStyle; + + // ... $style = new OutputFormatterStyle('red', 'yellow', array('bold', 'blink')); $output->getFormatter()->setStyle('fire', $style); $output->writeln('foo'); diff --git a/components/templating/helpers/assetshelper.rst b/components/templating/helpers/assetshelper.rst index 8e8dbf857bc..83bf5228862 100644 --- a/components/templating/helpers/assetshelper.rst +++ b/components/templating/helpers/assetshelper.rst @@ -71,6 +71,8 @@ To avoid using the cached resource after updating the old resource, you can use versions which you bump every time you release a new project. The version can be specified in the third argument:: + use Symfony\Component\Templating\Asset\PathPackage; + // ... $templateEngine->set(new AssetsHelper(null, null, '328rad75')); From 7016c8233cf7ec450b0715b4f7eb2586a95cc57b Mon Sep 17 00:00:00 2001 From: Marvin Butkereit Date: Wed, 13 Aug 2014 21:01:05 +0200 Subject: [PATCH 2/2] Fixing a mistake --- components/templating/helpers/assetshelper.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/templating/helpers/assetshelper.rst b/components/templating/helpers/assetshelper.rst index 83bf5228862..73f8042aaab 100644 --- a/components/templating/helpers/assetshelper.rst +++ b/components/templating/helpers/assetshelper.rst @@ -71,8 +71,6 @@ To avoid using the cached resource after updating the old resource, you can use versions which you bump every time you release a new project. The version can be specified in the third argument:: - use Symfony\Component\Templating\Asset\PathPackage; - // ... $templateEngine->set(new AssetsHelper(null, null, '328rad75')); @@ -106,6 +104,8 @@ Asset path generation is handled internally by packages. The component provides You can also use multiple packages:: + use Symfony\Component\Templating\Asset\PathPackage; + // ... $templateEngine->set(new AssetsHelper());