8000 [FrameworkBundle] init:bundle => bundle:init by Seldaek · Pull Request #117 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[FrameworkBundle] init:bundle => bundle:init #117

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

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
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
8000
Diff view
Diff view
Next Next commit
[FrameworkBundle] Renamed init:bundle to bundle:init to conform with …
…other commands
  • Loading branch information
Seldaek committed Feb 27, 2011
commit 3172b0018c3797ec77b36bc38b17e93b960160d4
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
class InitBundleCommand extends Command
class BundleInitCommand extends Command
{
/**
* @see Command
Expand All @@ -38,9 +38,9 @@ protected function configure()
new InputOption('format', '', InputOption::VALUE_REQUIRED, 'Use the format for configuration files (php, xml, or yml)', 'yml')
))
->setHelp(<<<EOT
The <info>init:bundle</info> command generates a new bundle with a basic skeleton.
The <info>bundle:init</info> command generates a new bundle with a basic skeleton.

<info>./app/console init:bundle "Vendor\HelloBundle" src [bundleName]</info>
<info>./app/console bundle:init "Vendor\HelloBundle" src [bundleName]</info>

The bundle namespace must end with "Bundle" (e.g. <comment>Vendor\HelloBundle</comment>)
and can be placed in any directory (e.g. <comment>src</comment>).
Expand All @@ -49,7 +49,7 @@ protected function configure()
be the concatenation of the namespace segments (e.g. <comment>VendorHelloBundle</comment>).
EOT
)
->setName('init:bundle')
->setName('bundle:init')
;
}

Expand Down
0