Skip to content

Fixed Commit comments #2499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 30, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions components/console/single_command_tool.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,14 @@ it is possible to remove this need by extending the application::
}
}

When calling your console script, the command `MyCommand` will then always
When calling your console script, the command ``MyCommand`` will then always
be used, without having to pass its name.

You can also simplify how you execute the application::

#!/usr/bin/env php
<?php
// command.php

use Acme\Tool\MyApplication;

$application = new MyApplication();
Expand Down
2 changes: 1 addition & 1 deletion components/dependency_injection/configurators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ in the application::
public function loadFormatters()
{
// code to configure which formatters to use
$enabledFormatters = array();
$enabledFormatters = array(...);
// ...

$this->enabledFormatters = $enabledFormatters;
Expand Down
4 changes: 2 additions & 2 deletions cookbook/form/use_empty_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ you form. For example::

public function indexAction()
{
$blog = // ...
$blog = ...;

// $blog is passed in as the data, so the empty_data option is not needed
$form = $this->createForm(new BlogType(), $blog);
Expand All @@ -35,8 +35,8 @@ that takes arguments. Remember, the default ``data_class`` option calls
that constructor with no arguments::

// src/Acme/DemoBundle/Form/Type/BlogType.php
// ...

// ...
use Symfony\Component\Form\AbstractType;
use Acme\DemoBundle\Entity\Blog;

Expand Down