bootstrap.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  4. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  5. *
  6. * Licensed under The MIT License
  7. * For full copyright and license information, please see the LICENSE.txt
  8. * Redistributions of files must retain the above copyright notice.
  9. *
  10. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  11. * @link http://cakephp.org CakePHP(tm) Project
  12. * @since 0.2.9
  13. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  14. */
  15. define('TIME_START', microtime(true));
  16. // Compatibility aliases. These will be removed for the first RC release.
  17. class_alias('Cake\Error\Debugger', 'Cake\Utility\Debugger');
  18. class_alias('Cake\Core\Configure\Engine\PhpConfig', 'Cake\Configure\Engine\PhpConfig');
  19. class_alias('Cake\Core\Configure\Engine\IniConfig', 'Cake\Configure\Engine\IniConfig');
  20. class_alias('Cake\Datasource\Exception\RecordNotFoundException', 'Cake\ORM\Exception\RecordNotFoundException');
  21. class_alias('Cake\ORM\Exception\RecordNotFoundException', 'Cake\ORM\Error\RecordNotFoundException');
  22. class_alias('Cake\Network\Exception\BadRequestException', 'Cake\Error\BadRequestException');
  23. class_alias('Cake\Network\Exception\ForbiddenException', 'Cake\Error\ForbiddenException');
  24. class_alias('Cake\Network\Exception\MethodNotAllowedException', 'Cake\Error\MethodNotAllowedException');
  25. class_alias('Cake\Network\Exception\NotFoundException', 'Cake\Error\NotFoundException');
  26. class_alias('Cake\Network\Exception\NotImplementedException', 'Cake\Error\NotImplementedException');
  27. class_alias('Cake\Network\Exception\SocketException', 'Cake\Error\SocketException');
  28. class_alias('Cake\Network\Exception\UnauthorizedException', 'Cake\Error\UnauthorizedException');
  29. class_alias('Cake\Filesystem\File', 'Cake\Utility\File');
  30. class_alias('Cake\Filesystem\Folder', 'Cake\Utility\Folder');
  31. class_alias('Cake\I18n\Time', 'Cake\Utility\Time');
  32. class_alias('Cake\I18n\Number', 'Cake\Utility\Number');
  33. require CAKE . 'basics.php';