Skip to content

Commit

Permalink
[FrameworkBundle] updated the init:bundle skeleton files
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Feb 21, 2011
1 parent b9168bb commit d4fc3c9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
Expand Up @@ -35,7 +35,7 @@ protected function configure()
new InputArgument('namespace', InputArgument::REQUIRED, 'The namespace of the bundle to create'),
new InputArgument('dir', InputArgument::REQUIRED, 'The directory where to create the bundle'),
new InputArgument('bundleName', InputArgument::OPTIONAL, 'The optional bundle name'),
new InputOption('format', '', InputOption::VALUE_REQUIRED, 'Use the format for configuration files (php, xml, or yml)', 'xml')
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.
Expand Down
Expand Up @@ -6,7 +6,9 @@
$collection = new RouteCollection();
/*
$collection->add('homepage', new Route('/', array(
'_controller' => 'NewBundle:Default:index',
'_controller' => '{{ bundle }}:Default:index',
)));
$collection->import("{{ bundle }}/Controller", '/prefix');
*/
return $collection;
Expand Up @@ -4,4 +4,11 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.symfony-project.org/schema/routing http://www.symfony-project.org/schema/routing/routing-1.0.xsd">

<!--
<route id="homepage" pattern="/">
<default key="_controller">{{ bundle }}:Default:denied</default>
</route>
<import resource="@{{ bundle }}/Resources/config/routing.xml" prefix="/prefix" />
//-->
</routes>
@@ -1,3 +1,7 @@
#homepage:
# pattern: /
# defaults: { _controller: NewBundle:Default:index }
# defaults: { _controller: {{ bundle }}:Default:index }
#
#{{ bundle }}:
# resource: "@{{ bundle }}/Resources/config/routing.yml"
# prefix: /prefix"

0 comments on commit d4fc3c9

Please sign in to comment.