Skip to content

Commit

Permalink
bug #4120 Fix use mistakes (mbutkereit)
Browse files Browse the repository at this point in the history
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #4120).

Discussion
----------

Fix use mistakes

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     |  no
| Applies to    | all

On http://symfony.com/doc/current/components/config/resources.html at "new YamlUserLoader", we have also a missing "use" statement. But i'm not sure if we need there one.

Commits
-------

7016c82 Fixing a mistake
4353d1f Fix use mistakes.
  • Loading branch information
weaverryan committed Aug 16, 2014
2 parents c0a0120 + 7404481 commit 93481d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/console/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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('<fire>foo</fire>');
Expand Down
2 changes: 2 additions & 0 deletions components/templating/helpers/assetshelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,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());

Expand Down

0 comments on commit 93481d7

Please sign in to comment.