REBELinBLUE\Deployer\Composers\VersionComposer::compose PHP Метод

compose() публичный Метод

Determines if the update prompt should show.
public compose ( Illuminate\Contracts\View\View $view )
$view Illuminate\Contracts\View\View
    public function compose(View $view)
    {
        $latest_tag = $this->release->latest();
        $current = Version::parse(APP_VERSION);
        $latest = Version::parse(APP_VERSION);
        if ($latest_tag) {
            $latest = Version::parse($latest_tag);
        }
        $is_outdated = $latest->compare($current) === 1;
        $view->with('is_outdated', $is_outdated);
        $view->with('current_version', $current);
        $view->with('latest_version', $latest);
    }
VersionComposer