This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
forked from samsonasik/expressive-composer-installer
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #182 from jsoumelidis/sf-container-support
Symfony DI container support
- Loading branch information
Showing
6 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
use JSoumelidis\SymfonyDI\Config\Config; | ||
use JSoumelidis\SymfonyDI\Config\ContainerFactory; | ||
|
||
$config = require realpath(__DIR__) . '/config.php'; | ||
$factory = new ContainerFactory(); | ||
|
||
return $factory(new Config($config)); |
14 changes: 14 additions & 0 deletions
14
src/ExpressiveInstaller/Resources/config/sf-container.global.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
return [ | ||
'sf-container.enable_cache' => true, | ||
'sf-container.cache_file' => __DIR__ . '/../../data/sf-container-cache.php', | ||
//Other useful options | ||
/* | ||
'sf-container.cache_class' => | ||
'CustomClassName', The class name of the cached container | ||
'sf-container.cache_class_ns' => | ||
'CustomClassNamespace', The namespace of the cached container | ||
'sf-container.cache_base_class' => | ||
'Container', The base class that the cached container will extend | ||
*/ | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters