Skip to content

Commit 97023d3

Browse files
committed
Handles console command definition for Symfony 4
1 parent 7f1e768 commit 97023d3

2 files changed

Lines changed: 69 additions & 0 deletions

File tree

DependencyInjection/PropelExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public function load(array $configs, ContainerBuilder $container)
6767
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
6868
$loader->load('propel.xml');
6969
$loader->load('converters.xml');
70+
$loader->load('console.xml');
7071
}
7172

7273
// build properties

Resources/config/console.xml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version="1.0" ?>
2+
3+
<container xmlns="http://symfony.com/schema/dic/services"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
6+
<services>
7+
<defaults public="false" />
8+
<service id="propel_bundle_propel.command.build_command" class="Propel\Bundle\PropelBundle\Command\BuildCommand">
9+
<tag name="console.command" command="propel:build" />
10+
</service>
11+
<service id="propel_bundle_propel.command.database_create_command" class="Propel\Bundle\PropelBundle\Command\DatabaseCreateCommand">
12+
<tag name="console.command" command="propel:database:create" />
13+
</service>
14+
<service class="Propel\Bundle\PropelBundle\Command\DatabaseDropCommand"
15+
id="propel_bundle_propel.command.database_drop_command">
16+
<tag name="console.command" command="propel:database:drop"/>
17+
</service>
18+
<service class="Propel\Bundle\PropelBundle\Command\ReverseCommand"
19+
id="propel_bundle_propel.command.database_reverse_command">
20+
<tag name="console.command" command="propel:database:reverse"/>
21+
</service>
22+
<service class="Propel\Bundle\PropelBundle\Command\FixturesDumpCommand"
23+
id="propel_bundle_propel.command.fixtures_dump_command">
24+
<tag name="console.command" command="propel:fixtures:dump"/>
25+
</service>
26+
<service class="Propel\Bundle\PropelBundle\Command\FixturesLoadCommand"
27+
id="propel_bundle_propel.command.fixtures_load_command">
28+
<tag name="console.command" command="propel:fixtures:load"/>
29+
</service>
30+
<service class="Propel\Bundle\PropelBundle\Command\FormGenerateCommand"
31+
id="propel_bundle_propel.command.form_generate_command">
32+
<tag name="console.command" command="propel:form:generate"/>
33+
</service>
34+
<service class="Propel\Bundle\PropelBundle\Command\GraphvizGenerateCommand"
35+
id="propel_bundle_propel.command.graphviz_generate_command">
36+
<tag name="console.command" command="propel:graphviz:generate"/>
37+
</service>
38+
<service class="Propel\Bundle\PropelBundle\Command\MigrationGenerateDiffCommand"
39+
id="propel_bundle_propel.command.migration_diff_command">
40+
<tag name="console.command" command="propel:migration:diff"/>
41+
</service>
42+
<service class="Propel\Bundle\PropelBundle\Command\MigrationMigrateCommand"
43+
id="propel_bundle_propel.command.migration_migrate_command">
44+
<tag name="console.command" command="propel:migration:migrate"/>
45+
</service>
46+
<service class="Propel\Bundle\PropelBundle\Command\MigrationStatusCommand"
47+
id="propel_bundle_propel.command.migration_status_command">
48+
<tag name="console.command" command="propel:migration:status"/>
49+
</service>
50+
<service class="Propel\Bundle\PropelBundle\Command\ModelBuildCommand"
51+
id="propel_bundle_propel.command.model_build_command">
52+
<tag name="console.command" command="propel:model:build"/>
53+
</service>
54+
<service class="Propel\Bundle\PropelBundle\Command\SqlBuildCommand"
55+
id="propel_bundle_propel.command.sql_build_command">
56+
<tag name="console.command" command="propel:sql:build"/>
57+
</service>
58+
<service class="Propel\Bundle\PropelBundle\Command\SqlInsertCommand"
59+
id="propel_bundle_propel.command.sql_insert_command">
60+
<tag name="console.command" command="propel:sql:insert"/>
61+
</service>
62+
<service class="Propel\Bundle\PropelBundle\Command\TableDropCommand"
63+
id="propel_bundle_propel.command.table_drop_command">
64+
<tag name="console.command" command="propel:table:drop"/>
65+
</service>
66+
</services>
67+
68+
</container>

0 commit comments

Comments
 (0)