-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
446 additions
and
1,308 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 was deleted.
Oops, something went wrong.
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,6 @@ | ||
<?php | ||
|
||
return [ | ||
'providers' => [], | ||
'bootloaders' => [] | ||
]; |
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,10 @@ | ||
<?php | ||
|
||
// TODO : ajouter un champ "environment" ??? qui contiendrait "developement" / "production" par exemple !!!! | ||
return [ | ||
# SECURITY WARNING: don't run with debug turned on in production! | ||
'debug' => env('APP_DEBUG', false), | ||
'charset' => env('APP_ENCODING', 'UTF-8'), | ||
'locale' => env('APP_DEFAULT_LOCALE', 'en_US'), | ||
'timezone' => env('APP_DEFAULT_TIMEZONE', 'UTC'), | ||
]; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Chiron\Bootloader; | ||
|
||
use Chiron\Application; | ||
use Chiron\Core\Container\Bootloader\AbstractBootloader; | ||
use Chiron\Config\ServicesConfig; | ||
use Chiron\Service\ServiceManager; | ||
|
||
final class ServicesBootloader extends AbstractBootloader | ||
{ | ||
// TODO : faire aussi un test class_exist avant de faire le addXXXX ? comme ce qu'on fait dans la classe PackageManifestBootloader ???? | ||
public function boot(ServiceManager $services, ServicesConfig $config): void | ||
{ | ||
foreach ($config->getProviders() as $provider) { | ||
$services->addProvider($provider); | ||
} | ||
|
||
foreach ($config->getBootloaders() as $bootloader) { | ||
$services->addBootloader($bootloader); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.