Created
May 16, 2015 00:51
-
-
Save damaya/20f785ddaad226002871 to your computer and use it in GitHub Desktop.
Contribuir con validación de environment del ezpublish kernel y justificarlo
This file contains hidden or 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
| */ | |
| public function registerContainerConfiguration( LoaderInterface $loader ) | |
| { | |
| $environment = $this->getEnvironment(); | |
| $loader->load( __DIR__ . '/config/config_' . $environment . '.yml' ); | |
| $configFile = __DIR__ . '/config/ezpublish_' . $environment . '.yml'; | |
| if ( !is_file( $configFile ) ) | |
| { | |
| $configFile = __DIR__ . '/config/ezpublish_setup.yml'; | |
| } | |
| if ( !is_readable( $configFile ) ) | |
| { | |
| throw new RuntimeException( "Configuration file '$configFile' is not readable." ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment