Browse Source

Reverted EventManagerTrait as a stub file.

Robert 10 years ago
parent
commit
8a0317dbca
2 changed files with 26 additions and 1 deletions
  1. 0 1
      config/bootstrap.php
  2. 26 0
      src/Event/EventManagerTrait.php

+ 0 - 1
config/bootstrap.php

@@ -21,7 +21,6 @@ define('TIME_START', microtime(true));
 if (PHP_VERSION_ID < 70000) {
     class_alias('Cake\Utility\Text', 'Cake\Utility\String');
 }
-class_alias('Cake\Event\EventDispatcherTrait', 'Cake\Event\EventManagerTrait');
 
 require CAKE . 'basics.php';
 

+ 26 - 0
src/Event/EventManagerTrait.php

@@ -0,0 +1,26 @@
+<?php
+/**
+ * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ *
+ * Licensed under The MIT License
+ * For full copyright and license information, please see the LICENSE.txt
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @link          http://cakephp.org CakePHP(tm) Project
+ * @since         3.0.0
+ * @license       http://www.opensource.org/licenses/mit-license.php MIT License
+ */
+namespace Cake\Event;
+
+/**
+ * Provides the event manager interface features for usage in classes that require it.
+ *
+ * @deprecated 3.0.10 Use EventDispatcherTrait instead.
+ */
+trait EventManagerTrait
+{
+
+    use EventDispatcherTrait;
+}