public function setCacheAdapter(AdapterAbstract $adapter)
    {
        if ($this->isSetup) {
            $e = new ApplicationIsAlreadySetupException('You cannot set the cache after calling setup()');
            $this->error($e);
        }

        $this->cache = $adapter;
    }
public function setCacheAdapter(AdapterAbstract $adapter)
    {
        if ($this->isSetup) {
            $e = new ApplicationIsAlreadySetupException('You cannot set the cache after calling setup()');
            $this->error($e);
        }

        $this->cache = $adapter;
    }
public function setCacheAdapter ( AdapterAbstract $ adapter ) { if ( $ this -> isSetup ) { $ e = new ApplicationIsAlreadySetupException ( 'You cannot set the cache after calling setup()' ) ; $ this -> error ( $ e ) ; } $ this -> cache = $ adapter ; }
Set an application level cache adapter.
This adapter will be made available to all runnables

@param AdapterAbstract $adapter
Set an application level cache adapter . This adapter will be made available to all runnables