8000 minor #10432 clean up framework bundle commands (cordoval) · cordoval/symfony@1e0fea6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1e0fea6

Browse files
committed
minor symfony#10432 clean up framework bundle commands (cordoval)
This PR was merged into the 2.5-dev branch. Discussion ---------- clean up framework bundle commands |Q |A | |--- |---| |Bug Fix? |no | |New Feature? |no | |BC Breaks? |no | |Deprecations?|no | |Tests Pass? |yes| |Fixed Tickets| | |License |MIT| |Doc PR |na | Commits ------- 0984313 clean up commands from framework bundle
2 parents 5e0bb71 + 0984313 commit 1e0fea6

16 files changed

+27
-17
lines changed

src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function findAllTemplates()
5555

5656
$templates = array();
5757

58-
foreach ($this->kernel->getBundles() as $name => $bundle) {
58+
foreach ($this->kernel->getBundles() as $bundle) {
5959
$templates = array_merge($templates, $this->findTemplatesInBundle($bundle));
6060
}
6161

src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Symfony\Component\DependencyInjection\Extension\Extension;
1717

1818
/**
19-
* A console command for dumping available configuration reference
19+
* A console command for dumping available configuration reference.
2020
*
2121
* @author Kevin Bond <kevinbond@gmail.com>
2222
* @author Wouter J <waldio.webdesign@gmail.com>

src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
8383
$bundlesDir = $targetArg.'/bundles/';
8484
$filesystem->mkdir($bundlesDir, 0777);
8585

86-
$output->writeln(sprintf("Installing assets using the <comment>%s</comment> option", $input->getOption('symlink') ? 'symlink' : 'hard copy'));
86+
$output->writeln(sprintf('Installing assets %s the <comment>symlink</comment> option', $input->getOption('symlink') ? 'using' : 'without'));
8787

8888
foreach ($this->getContainer()->get('kernel')->getBundles() as $bundle) {
8989
if (is_dir($originDir = $bundle->getPath().'/Resources/public')) {

src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ protected function configure()
4343
4444
<info>php %command.full_name% --env=dev</info>
4545
<info>php %command.full_name% --env=prod --no-debug</info>
46+
4647
EOF
4748
)
4849
;
@@ -107,9 +108,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
107108
}
108109

109110
/**
110-
* @param string $warmupDir
111-
* @param string $realCacheDir
112-
* @param bool $enableOptionalWarmers
111+
* @param string $warmupDir
112+
* @param string $realCacheDir
113+
* @param Boolean $enableOptionalWarmers
113114
*/
114115
protected function warmup($warmupDir, $realCacheDir, $enableOptionalWarmers = true)
115116
{

src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ protected function configure()
4242
command, too many classes that should be part of the cache are already loaded
4343
in memory). Use <comment>curl</comment> or any other similar tool to warm up
4444
the classes cache if you want.
45+
4546
EOF
4647
)
4748
;

src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@
1515
use Symfony\Component\Console\Input\InputArgument;
1616
use Symfony\Component\Console\Input\InputInterface;
1717
use Symfony\Component\Console\Output\OutputInterface;
18-
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
1918
use Symfony\Component\Yaml\Yaml;
2019

2120
/**
22-
* A console command for dumping available configuration reference
21+
* A console command for dumping available configuration reference.
2322
*
2423
* @author Grégoire Pineau <lyrixx@lyrixx.info>
2524
*/

src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Symfony\Component\Console\Output\OutputInterface;
2020

2121
/**
22-
* A console command for dumping available configuration reference
22+
* A console command for dumping available configuration reference.
2323
*
2424
* @author Kevin Bond <kevinbond@gmail.com>
2525
* @author Wouter J <waldio.webdesign@gmail.com>
@@ -53,6 +53,7 @@ protected function configure()
5353
When the option is not provided, <comment>yaml</comment> is used.
5454
5555
<info>php %command.full_name% FrameworkBundle --format=xml</info>
56+
5657
EOF
5758
)
5859
;

src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use Symfony\Component\Config\FileLocator;
2222

2323
/**
24-
* A console command for retrieving information about services
24+
* A console command for retrieving information about services.
2525
*
2626
* @author Ryan Weaver <ryan@thatsquality.com>
2727
*/
@@ -41,8 +41,8 @@ protected function configure()
4141
->setName('container:debug')
4242
->setDefinition(array(
4343
new InputArgument('name', InputArgument::OPTIONAL, 'A service name (foo)'),
44-
new InputOption('show-private', null, InputOption::VALUE_NONE, 'Use to show public *and* private services'),
45-
new InputOption('tag', null, InputOption::VALUE_REQUIRED, 'Show all services with a specific tag'),
44+
new InputOption('show-private', null, InputOption::VALUE_NONE, 'Used to show public *and* private services'),
45+
new InputOption('tag', null, InputOption::VALUE_REQUIRED, 'Shows all services with a specific tag'),
4646
new InputOption('tags', null, InputOption::VALUE_NONE, 'Displays tagged services for an application'),
4747
new InputOption('parameter', null, InputOption::VALUE_REQUIRED, 'Displays a specific parameter for an application'),
4848
new InputOption('parameters', null, InputOption::VALUE_NONE, 'Displays parameters for an application'),
@@ -79,6 +79,7 @@ protected function configure()
7979
Display a specific parameter by specifying his name with the --parameter option:
8080
8181
<info>php %command.full_name% --parameter=kernel.debug</info>
82+
8283
EOF
8384
)
8485
;

src/Symfony/Bundle/FrameworkBundle/Command/RouterApacheDumperCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ protected function configure()
6363
matching.
6464
6565
<info>php %command.full_name%</info>
66+
6667
EOF
6768
)
6869
;

src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use Symfony\Component\Routing\Route;
2121

2222
/**
23-
* A console command for retrieving information about routes
23+
* A console command for retrieving information about routes.
2424
*
2525
* @author Fabien Potencier <fabien@symfony.com>
2626
* @author Tobias Schultze <http://tobion.de>
@@ -61,6 +61,7 @@ protected function configure()
6161
The <info>%command.name%</info> displays the configured routes:
6262
6363
<info>php %command.full_name%</info>
64+
6465
EOF
6566
)
6667
;

0 commit comments

Comments
 (0)
0