CoreFiles by mySites.guru
BeforeJoomlaAutoupdateEvent.php52 lines, 1,128 bytes, from Joomla_6.0.0-beta2-Beta-Full_Package.zip
Raw History Compare with 6.0.0-beta1
md5
7a2cdf2674f8a8e616f609e8a37b8c07
sha1
349dfc3798fbfa762e11c170a50b8abc348d83ac
sha256
05f4852d3762dc200ba8d8a834c400114b608ac0e40065fc228687b9487f95cf
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2025 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Event\Extension;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Class for Joomla Auto Update events
 *
 * @since   6.0.0
 */
class BeforeJoomlaAutoupdateEvent extends AbstractJoomlaUpdateEvent
{
    /**
     * Constructor.
     *
     * @param   string  $name       The event name.
     * @param   array   $arguments  The event arguments.
     *
     * @throws  \BadMethodCallException
     *
     * @since   6.0.0
     */
    public function __construct($name, array $arguments = [])
    {
        $arguments['stoppedUpdate'] = false;

        parent::__construct($name, $arguments);
    }

    /**
     * Set stop parameter to true
     *
     * @return  void
     *
     * @since   6.0.0
     */
    public function stopUpdate()
    {
        $this->arguments['stoppedUpdate'] = true;
        $this->stopPropagation();
    }
}

No other release has this exact content. See every version of this file.