src/JRpc/Json/Server/Server.php
public function initializeClass()
    {
        if (!isset($this->options['services']) || !is_array($this->options['services'])) {
            return;
        }
        
        if ($this->getPersistence() && $this->getCache() !== null && ($definition = $this->getCache()->getItem('jrpc-definition')) !== null && ($serviceMap = $this->getCache()->getItem('jrpc-serviceMap')) !== null) {
            $this->table = $definition;
            $this->serviceMap = $serviceMap;
            
            return;
        }
        
        foreach ($this->options['services'] as $c) {
            $this->setClass($c, ((isset($c['namespace'])) ? $c['namespace'] : ''));
        }
        
        if ($this->getPersistence() && $this->getCache() !== null) {
            $this->getCache()->setItem('jrpc-definition', $this->table);
            $this->getCache()->setItem('jrpc-serviceMap', $this->serviceMap);
        }
    }
public function initializeClass()
    {
        if (!isset($this->options['services']) || !is_array($this->options['services'])) {
            return;
        }
        
        if ($this->getPersistence() && $this->getCache() !== null && ($definition = $this->getCache()->getItem('jrpc-definition')) !== null && ($serviceMap = $this->getCache()->getItem('jrpc-serviceMap')) !== null) {
            $this->table = $definition;
            $this->serviceMap = $serviceMap;
            
            return;
        }
        
        foreach ($this->options['services'] as $c) {
            $this->setClass($c, ((isset($c['namespace'])) ? $c['namespace'] : ''));
        }
        
        if ($this->getPersistence() && $this->getCache() !== null) {
            $this->getCache()->setItem('jrpc-definition', $this->table);
            $this->getCache()->setItem('jrpc-serviceMap', $this->serviceMap);
        }
    }
public function initializeClass ( ) { if ( ! isset ( $ this -> options [ 'services' ] ) || ! is_array ( $ this -> options [ 'services' ] ) ) { return ; } if ( $ this -> getPersistence ( ) && $ this -> getCache ( ) !== null && ( $ definition = $ this -> getCache ( ) -> getItem ( 'jrpc-definition' ) ) !== null && ( $ serviceMap = $ this -> getCache ( ) -> getItem ( 'jrpc-serviceMap' ) ) !== null ) { $ this -> table = $ definition ; $ this -> serviceMap = $ serviceMap ; return ; } foreach ( $ this -> options [ 'services' ] as $ c ) { $ this -> setClass ( $ c , ( ( isset ( $ c [ 'namespace' ] ) ) ? $ c [ 'namespace' ] : '' ) ) ; } if ( $ this -> getPersistence ( ) && $ this -> getCache ( ) !== null ) { $ this -> getCache ( ) -> setItem ( 'jrpc-definition' , $ this -> table ) ; $ this -> getCache ( ) -> setItem ( 'jrpc-serviceMap' , $ this -> serviceMap ) ; } }
Initialize all class.
Initialize all class .