Skip to content

Commit 922ad54

Browse files
committed
First working version
1 parent 6decd40 commit 922ad54

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function getConfigTreeBuilder()
1515

1616
$rootNode
1717
->children()
18-
->integerNode('dao_namespace')->end()
18+
->scalarNode('dao_namespace')->end()
1919
->scalarNode('bean_namespace')->end()
2020
->end()
2121
;

Resources/config/container/tdbm.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,20 @@
1414
<argument></argument> <!-- will be filled in with tdbm.dao_namespace dynamically -->
1515
</service>
1616

17+
<service id="TheCodingMachine\TDBM\ConfigurationInterface" alias="TheCodingMachine\TDBM\Configuration">
18+
</service>
19+
20+
<service id="TheCodingMachine\TDBM\Utils\NamingStrategyInterface" alias="TheCodingMachine\TDBM\Utils\DefaultNamingStrategy">
21+
</service>
22+
23+
<service id="TheCodingMachine\TDBM\Utils\DefaultNamingStrategy" class="TheCodingMachine\TDBM\Utils\DefaultNamingStrategy" />
24+
1725
<service id="TheCodingMachine\TDBM\TDBMService" class="TheCodingMachine\TDBM\TDBMService" public="true">
1826
</service>
27+
28+
<service id="TheCodingMachine\TDBM\Commands\GenerateCommand" class="TheCodingMachine\TDBM\Commands\GenerateCommand" public="true">
29+
<tag name="console.command"></tag>
30+
</service>
1931
</services>
2032

2133
</container>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"php" : ">=7.1",
2525
"thecodingmachine/tdbm" : "^5.0",
2626
"doctrine/doctrine-bundle": "^1.9",
27-
"doctrine/orm": "^2 || ^3"
27+
"doctrine/orm": "*"
2828
},
2929
"autoload" : {
3030
"psr-4" : {

0 commit comments

Comments
 (0)