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..73f8042aaab 100644 --- a/components/templating/helpers/assetshelper.rst +++ b/components/templating/helpers/assetshelper.rst @@ -104,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());