"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

ContainerAwareEventDispatcher.php  (phplist-3.4.5.tgz):ContainerAwareEventDispatcher.php  (phplist-3.4.6.tgz)
skipping to change at line 14 skipping to change at line 14
* This file is part of the Symfony package. * This file is part of the Symfony package.
* *
* (c) Fabien Potencier <fabien@symfony.com> * (c) Fabien Potencier <fabien@symfony.com>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Symfony\Component\EventDispatcher; namespace Symfony\Component\EventDispatcher;
use PHPUnit\Framework\MockObject\MockObject;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
/** /**
* Lazily loads listeners and subscribers from the dependency injection * Lazily loads listeners and subscribers from the dependency injection
* container. * container.
* *
* @author Fabien Potencier <fabien@symfony.com> * @author Fabien Potencier <fabien@symfony.com>
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* @author Jordan Alliot <jordan.alliot@gmail.com> * @author Jordan Alliot <jordan.alliot@gmail.com>
* *
skipping to change at line 45 skipping to change at line 46
/** /**
* The services registered as listeners. * The services registered as listeners.
*/ */
private $listeners = []; private $listeners = [];
public function __construct(ContainerInterface $container) public function __construct(ContainerInterface $container)
{ {
$this->container = $container; $this->container = $container;
$class = \get_class($this); $class = \get_class($this);
if ($this instanceof \PHPUnit_Framework_MockObject_MockObject || $this i nstanceof \Prophecy\Doubler\DoubleInterface) { if ($this instanceof \PHPUnit_Framework_MockObject_MockObject || $this i nstanceof MockObject || $this instanceof \Prophecy\Doubler\DoubleInterface) {
$class = get_parent_class($class); $class = get_parent_class($class);
} }
if (__CLASS__ !== $class) { if (__CLASS__ !== $class) {
@trigger_error(sprintf('The %s class is deprecated since Symfony 3.3 and will be removed in 4.0. Use EventDispatcher with closure factories instead. ', __CLASS__), E_USER_DEPRECATED); @trigger_error(sprintf('The %s class is deprecated since Symfony 3.3 and will be removed in 4.0. Use EventDispatcher with closure factories instead. ', __CLASS__), E_USER_DEPRECATED);
} }
} }
/** /**
* Adds a service as event listener. * Adds a service as event listener.
* *
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)