public function makeStorage(BackendInterface $backend)
    {
        if (SettingsServer::isTrackerApiRequest()) {
            $backend = new Backend\Cache($backend);
        }

        return new Storage($backend);
    }
public function makeStorage(BackendInterface $backend)
    {
        if (SettingsServer::isTrackerApiRequest()) {
            $backend = new Backend\Cache($backend);
        }

        return new Storage($backend);
    }
public function makeStorage ( BackendInterface $ backend ) { if ( SettingsServer :: isTrackerApiRequest ( ) ) { $ backend = new Backend \ Cache ( $ backend ) ; } return new Storage ( $ backend ) ; }
Makes a new storage object based on a custom backend interface.

@param BackendInterface $backend
@return Storage
Makes a new storage object based on a custom backend interface .