protected function resolveContextStrategy($strategy)
    {
        if ( ! $strategy) {
            $strategy = config('cms-models.strategies.repository.default-strategy');
        }

        if ( ! ($strategyClass = $this->resolveContextStrategyClass($strategy))) {
            return null;
        }

        return app($strategyClass);
    }
protected function resolveContextStrategy($strategy)
    {
        if ( ! $strategy) {
            $strategy = config('cms-models.strategies.repository.default-strategy');
        }

        if ( ! ($strategyClass = $this->resolveContextStrategyClass($strategy))) {
            return null;
        }

        return app($strategyClass);
    }
protected function resolveContextStrategy ( $ strategy ) { if ( ! $ strategy ) { $ strategy = config ( 'cms-models.strategies.repository.default-strategy' ) ; } if ( ! ( $ strategyClass = $ this -> resolveContextStrategyClass ( $ strategy ) ) ) { return null ; } return app ( $ strategyClass ) ; }
Resolves the context strategy, if possible.

@param $strategy
@return ContextStrategyInterface|null
Resolves the context strategy if possible .