Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit855f959

Browse files
committed
Merge branch '2.5'
2 parentseb268c5 +741ad05 commit855f959

29 files changed

+545
-26
lines changed

‎_exts‎

‎components/console/helpers/dialoghelper.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ from the command line, you need to overwrite the HelperSet used by the command::
257257
$commandTester = new CommandTester($command);
258258

259259
$dialog = $command->getHelper('dialog');
260-
$dialog->setInputStream($this->getInputStream('Test\n'));
260+
$dialog->setInputStream($this->getInputStream("Test\n"));
261261
// Equals to a user inputing "Test" and hitting ENTER
262262
// If you need to enter a confirmation, "yes\n" will work
263263

‎components/console/helpers/table.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ When building a console application it may be useful to display tabular data:
2424
To display a table, use:class:`Symfony\\Component\\Console\\Helper\\Table`,
2525
set the headers, set the rows and then render the table::
2626

27-
use Symfony\Component\Helper\Table;
27+
use Symfony\Component\Console\Helper\Table;
2828

2929
$table = new Table($output);
3030
$table
@@ -41,7 +41,7 @@ set the headers, set the rows and then render the table::
4141
You can add a table separator anywhere in the output by passing an instance of
4242
:class:`Symfony\\Component\\Console\\Helper\\TableSeparator` as a row::
4343

44-
use Symfony\Component\Helper\TableSeparator;
44+
use Symfony\Component\Console\Helper\TableSeparator;
4545

4646
$table->setRows(array(
4747
array('99921-58-10-7', 'Divine Comedy', 'Dante Alighieri'),
@@ -103,7 +103,7 @@ which outputs:
103103
104104
If the built-in styles do not fit your need, define your own::
105105

106-
use Symfony\Component\Helper\TableStyle;
106+
use Symfony\Component\Console\Helper\TableStyle;
107107

108108
// by default, this is based on the default style
109109
$style = new TableStyle();

‎cookbook/bundles/prepend_extension.rst‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ How to simplify configuration of multiple Bundles
66
=================================================
77

88
When building reusable and extensible applications, developers are often
9-
faced with a choice: either create a single largeBundle or multiple smaller
10-
Bundles. Creating a singleBundle has thedraw back that it's impossible for
9+
faced with a choice: either create a single largebundle or multiple smaller
10+
bundles. Creating a singlebundle has thedrawback that it's impossible for
1111
users to choose to remove functionality they are not using. Creating multiple
12-
Bundles has thedraw back that configuration becomes more tedious and settings
13-
often need to be repeated for variousBundles.
12+
bundles has thedrawback that configuration becomes more tedious and settings
13+
often need to be repeated for variousbundles.
1414

1515
Using the below approach, it is possible to remove the disadvantage of the
16-
multipleBundle approach by enabling a single Extension to prepend the settings
17-
for anyBundle. It can use the settings defined in the ``app/config/config.yml``
18-
to prepend settings just as if they would have been written explicitly by the
19-
user in the application configuration.
16+
multiplebundle approach by enabling a single Extension to prepend the settings
17+
for anybundle. It can use the settings defined in the ``app/config/config.yml``
18+
to prepend settings just as if they would have been written explicitly by
19+
theuser in the application configuration.
2020

2121
For example, this could be used to configure the entity manager name to use in
22-
multipleBundles. Or it can be used to enable an optional feature that depends
23-
on anotherBundle being loaded as well.
22+
multiplebundles. Or it can be used to enable an optional feature that depends
23+
on anotherbundle being loaded as well.
2424

2525
To give an Extension the power to do this, it needs to implement
2626
:class:`Symfony\\Component\\DependencyInjection\\Extension\\PrependExtensionInterface`::
@@ -45,24 +45,24 @@ To give an Extension the power to do this, it needs to implement
4545
Inside the:method:`Symfony\\Component\\DependencyInjection\\Extension\\PrependExtensionInterface::prepend`
4646
method, developers have full access to the:class:`Symfony\\Component\\DependencyInjection\\ContainerBuilder`
4747
instance just before the:method:`Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface::load`
48-
method is called on each of the registeredBundle Extensions. In order to
49-
prepend settings to aBundle extension developers can use the
48+
method is called on each of the registeredbundle Extensions. In order to
49+
prepend settings to abundle extension developers can use the
5050
:method:`Symfony\\Component\\DependencyInjection\\ContainerBuilder::prependExtensionConfig`
5151
method on the:class:`Symfony\\Component\\DependencyInjection\\ContainerBuilder`
5252
instance. As this method only prepends settings, any other settings done explicitly
5353
inside the ``app/config/config.yml`` would override these prepended settings.
5454

5555
The following example illustrates how to prepend
56-
a configuration setting in multipleBundles as well as disable a flag in multipleBundles
57-
in case a specific otherBundle is not registered::
56+
a configuration setting in multiplebundles as well as disable a flag in multiplebundles
57+
in case a specific otherbundle is not registered::
5858

5959
public function prepend(ContainerBuilder $container)
6060
{
61-
// get allBundles
61+
// get allbundles
6262
$bundles = $container->getParameter('kernel.bundles');
6363
// determine if AcmeGoodbyeBundle is registered
6464
if (!isset($bundles['AcmeGoodbyeBundle'])) {
65-
// disable AcmeGoodbyeBundle inBundles
65+
// disable AcmeGoodbyeBundle inbundles
6666
$config = array('use_acme_goodbye' => false);
6767
foreach ($container->getExtensions() as $name => $extension) {
6868
switch ($name) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp