public function init()
    {
        if ($this->getCache() === null) {
            $options = $this->getOptions();
            $this->setCache(Cache\StorageFactory::factory($options['cache']));
        }

        $this->isInit = true;
    }
public function init()
    {
        if ($this->getCache() === null) {
            $options = $this->getOptions();
            $this->setCache(Cache\StorageFactory::factory($options['cache']));
        }

        $this->isInit = true;
    }
public function init ( ) { if ( $ this -> getCache ( ) === null ) { $ options = $ this -> getOptions ( ) ; $ this -> setCache ( Cache \ StorageFactory :: factory ( $ options [ 'cache' ] ) ) ; } $ this -> isInit = true ; }
Init method is called automatically with the service creation.
Init method is called automatically with the service creation .