/usr/share/php/Doctrine/compatibility.php is in php-kdyby-events 2.4.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | <?php
/**
* This file is part of the Kdyby (http://www.kdyby.org)
*
* Copyright (c) 2008 Filip Procházka (filip@prochazka.su)
*
* For the full copyright and license information, please view the file license.txt that was distributed with this source code.
*/
if (!defined('KDYBY_TO_DOCTRINE_EVENTS') && !class_exists('Doctrine\Common\EventManager')) {
$aliases = <<<GEN
namespace Doctrine\Common {
class EventArgs {}
abstract class EventManager {
public function addEventSubscriber(EventSubscriber \$subscriber) { \$this->addEventListener(\$subscriber->getSubscribedEvents(), \$subscriber); }
public function removeEventSubscriber(EventSubscriber \$subscriber) { \$this->removeEventListener(\$subscriber->getSubscribedEvents(), \$subscriber); }
abstract public function addEventListener(\$events, \$listener);
abstract public function removeEventListener(\$events, \$listener = NULL);
}
interface EventSubscriber { function getSubscribedEvents(); }
}
GEN;
eval($aliases);
define('KDYBY_TO_DOCTRINE_EVENTS', 1);
}
|