public function checkCoreForUpdates()
    {
        // Is there even an install directory to check?
        if ($this->isInstallerAvailable() === false) {
            return false;
        }

        try {
            // The updater contains a version higher than the current Symphony version.
            if ($this->isUpgradeAvailable()) {
                $message = __('An update has been found in your installation to upgrade Symphony to %s.', array($this->getMigrationVersion())) . ' <a href="' . URL . '/install/">' . __('View update.') . '</a>';

                // The updater contains a version lower than the current Symphony version.
                // The updater is the same version as the current Symphony install.
            } else {
                $message = __('Your Symphony installation is up to date, but the installer was still detected. For security reasons, it should be removed.') . ' <a href="' . URL . '/install/?action=remove">' . __('Remove installer?') . '</a>';
            }

            // Can't detect update Symphony version
        } catch (Exception $e) {
            $message = __('An update script has been found in your installation.') . ' <a href="' . URL . '/install/">' . __('View update.') . '</a>';
        }

        $this->Page->pageAlert($message, Alert::NOTICE);

        return true;
    }
public function checkCoreForUpdates()
    {
        // Is there even an install directory to check?
        if ($this->isInstallerAvailable() === false) {
            return false;
        }

        try {
            // The updater contains a version higher than the current Symphony version.
            if ($this->isUpgradeAvailable()) {
                $message = __('An update has been found in your installation to upgrade Symphony to %s.', array($this->getMigrationVersion())) . ' <a href="' . URL . '/install/">' . __('View update.') . '</a>';

                // The updater contains a version lower than the current Symphony version.
                // The updater is the same version as the current Symphony install.
            } else {
                $message = __('Your Symphony installation is up to date, but the installer was still detected. For security reasons, it should be removed.') . ' <a href="' . URL . '/install/?action=remove">' . __('Remove installer?') . '</a>';
            }

            // Can't detect update Symphony version
        } catch (Exception $e) {
            $message = __('An update script has been found in your installation.') . ' <a href="' . URL . '/install/">' . __('View update.') . '</a>';
        }

        $this->Page->pageAlert($message, Alert::NOTICE);

        return true;
    }
public function checkCoreForUpdates ( ) { // Is there even an install directory to check? if ( $ this -> isInstallerAvailable ( ) === false ) { return false ; } try { // The updater contains a version higher than the current Symphony version. if ( $ this -> isUpgradeAvailable ( ) ) { $ message = __ ( 'An update has been found in your installation to upgrade Symphony to %s.' , array ( $ this -> getMigrationVersion ( ) ) ) . ' <a href="' . URL . '/install/">' . __ ( 'View update.' ) . '</a>' ; // The updater contains a version lower than the current Symphony version. // The updater is the same version as the current Symphony install. } else { $ message = __ ( 'Your Symphony installation is up to date, but the installer was still detected. For security reasons, it should be removed.' ) . ' <a href="' . URL . '/install/?action=remove">' . __ ( 'Remove installer?' ) . '</a>' ; } // Can't detect update Symphony version } catch ( Exception $ e ) { $ message = __ ( 'An update script has been found in your installation.' ) . ' <a href="' . URL . '/install/">' . __ ( 'View update.' ) . '</a>' ; } $ this -> Page -> pageAlert ( $ message , Alert :: NOTICE ) ; return true ; }
Scan the install directory to look for new migrations that can be applied
to update this version of Symphony. If one if found, a new Alert is added
to the page.

@since Symphony 2.5.2
@return boolean
Returns true if there is an update available, false otherwise.
Scan the install directory to look for new migrations that can be applied to update this version of Symphony . If one if found a new Alert is added to the page .