Skip to content

Commit 9f43273

Browse files
committed
new services.
1 parent c7fa71c commit 9f43273

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drufony.services.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
services:
2+
# Pass-through to get the database connection via the service
3+
# container, available for being a dependency of other services
4+
database:
5+
class: DatabaseConnection
6+
factory: [Database, getConnection]
7+
28
class_loader:
39
class: Composer\Autoload\Classloader
4-
synthetic: true
10+
factory: [ '@=constant("DRUFONY_COMPOSER_AUTOLOAD_CLASS")', getLoader ]

0 commit comments

Comments
 (0)