original_string: protected function registerRuntimeConfiguration()
      {
          $propel_conf = $this->app->config['propel.propel'];
  
          if ( ! isset($propel_conf['runtime']['connections']) ) {
              throw new \InvalidArgumentException('Unable to guess Propel runtime config file. Please, initialize the "propel.runtime" parameter.');
          }
  
          /** @var $serviceContainer \Propel\Runtime\ServiceContainer\StandardServiceContainer */
          $serviceContainer = Propel::getServiceContainer();
          $serviceContainer->closeConnections();
          $serviceContainer->checkVersion('2.0.0-dev');
  
          $runtime_conf = $propel_conf['runtime'];
  
          // set connections
          foreach ($runtime_conf['connections'] as $connection_name) {
              $config = $propel_conf['database']['connections'][$connection_name];
  
              $serviceContainer->setAdapterClass($connection_name, $config['adapter']);
              $manager = new ConnectionManagerSingle();
              $manager->setConfiguration($config + [$propel_conf['paths']]);
              $manager->setName($connection_name);
              $serviceContainer->setConnectionManager($connection_name, $manager);
          }
  
          $serviceContainer->setDefaultDatasource($runtime_conf['defaultConnection']);
  
          // set loggers
          $has_default_logger = false;
          if ( isset($runtime_conf['log']) ) {
              $has_default_logger = array_key_exists('defaultLogger', $runtime_conf['log']);
              foreach ($runtime_conf['log'] as $logger_name => $logger_conf) {
                  $serviceContainer->setLoggerConfiguration($logger_name, $logger_conf);
              }
          }
  
          if ( ! $has_default_logger) {
              $serviceContainer->setLogger('defaultLogger', app()->log->getLogger());
          }
  
          Propel::setServiceContainer($serviceContainer);
      }
code: protected function registerRuntimeConfiguration()
      {
          $propel_conf = $this->app->config['propel.propel'];
  
          if ( ! isset($propel_conf['runtime']['connections']) ) {
              throw new \InvalidArgumentException('Unable to guess Propel runtime config file. Please, initialize the "propel.runtime" parameter.');
          }
  
          /** @var $serviceContainer \Propel\Runtime\ServiceContainer\StandardServiceContainer */
          $serviceContainer = Propel::getServiceContainer();
          $serviceContainer->closeConnections();
          $serviceContainer->checkVersion('2.0.0-dev');
  
          $runtime_conf = $propel_conf['runtime'];
  
          // set connections
          foreach ($runtime_conf['connections'] as $connection_name) {
              $config = $propel_conf['database']['connections'][$connection_name];
  
              $serviceContainer->setAdapterClass($connection_name, $config['adapter']);
              $manager = new ConnectionManagerSingle();
              $manager->setConfiguration($config + [$propel_conf['paths']]);
              $manager->setName($connection_name);
              $serviceContainer->setConnectionManager($connection_name, $manager);
          }
  
          $serviceContainer->setDefaultDatasource($runtime_conf['defaultConnection']);
  
          // set loggers
          $has_default_logger = false;
          if ( isset($runtime_conf['log']) ) {
              $has_default_logger = array_key_exists('defaultLogger', $runtime_conf['log']);
              foreach ($runtime_conf['log'] as $logger_name => $logger_conf) {
                  $serviceContainer->setLoggerConfiguration($logger_name, $logger_conf);
              }
          }
  
          if ( ! $has_default_logger) {
              $serviceContainer->setLogger('defaultLogger', app()->log->getLogger());
          }
  
          Propel::setServiceContainer($serviceContainer);
      }
code_tokens: protected function registerRuntimeConfiguration ( ) { $ propel_conf = $ this -> app -> config [ 'propel.propel' ] ; if ( ! isset ( $ propel_conf [ 'runtime' ] [ 'connections' ] ) ) { throw new \ InvalidArgumentException ( 'Unable to guess Propel runtime config file. Please, initialize the "propel.runtime" parameter.' ) ; } /** @var $serviceContainer \Propel\Runtime\ServiceContainer\StandardServiceContainer */ $ serviceContainer = Propel :: getServiceContainer ( ) ; $ serviceContainer -> closeConnections ( ) ; $ serviceContainer -> checkVersion ( '2.0.0-dev' ) ; $ runtime_conf = $ propel_conf [ 'runtime' ] ; // set connections foreach ( $ runtime_conf [ 'connections' ] as $ connection_name ) { $ config = $ propel_conf [ 'database' ] [ 'connections' ] [ $ connection_name ] ; $ serviceContainer -> setAdapterClass ( $ connection_name , $ config [ 'adapter' ] ) ; $ manager = new ConnectionManagerSingle ( ) ; $ manager -> setConfiguration ( $ config + [ $ propel_conf [ 'paths' ] ] ) ; $ manager -> setName ( $ connection_name ) ; $ serviceContainer -> setConnectionManager ( $ connection_name , $ manager ) ; } $ serviceContainer -> setDefaultDatasource ( $ runtime_conf [ 'defaultConnection' ] ) ; // set loggers $ has_default_logger = false ; if ( isset ( $ runtime_conf [ 'log' ] ) ) { $ has_default_logger = array_key_exists ( 'defaultLogger' , $ runtime_conf [ 'log' ] ) ; foreach ( $ runtime_conf [ 'log' ] as $ logger_name => $ logger_conf ) { $ serviceContainer -> setLoggerConfiguration ( $ logger_name , $ logger_conf ) ; } } if ( ! $ has_default_logger ) { $ serviceContainer -> setLogger ( 'defaultLogger' , app ( ) -> log -> getLogger ( ) ) ; } Propel :: setServiceContainer ( $ serviceContainer ) ; }
docstring: Register propel runtime configuration.
  
  @return void
docstring_tokens: Register propel runtime configuration .