bootstrap.php 1.7 KB

1234567891011121314151617181920212223242526272829303132
  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\ORM\Exception\RecordNotFoundException', 'Cake\ORM\Error\RecordNotFoundException');
  21. class_alias('Cake\Network\Exception\BadRequestException', 'Cake\Error\BadRequestException');
  22. class_alias('Cake\Network\Exception\ForbiddenException', 'Cake\Error\ForbiddenException');
  23. class_alias('Cake\Network\Exception\MethodNotAllowedException', 'Cake\Error\MethodNotAllowedException');
  24. class_alias('Cake\Network\Exception\NotFoundException', 'Cake\Error\NotFoundException');
  25. class_alias('Cake\Network\Exception\NotImplementedException', 'Cake\Error\NotImplementedException');
  26. class_alias('Cake\Network\Exception\SocketException', 'Cake\Error\SocketException');
  27. class_alias('Cake\Network\Exception\UnauthorizedException', 'Cake\Error\UnauthorizedException');
  28. class_alias('Cake\I18n\Time', 'Cake\Utiliy\Time');
  29. require CAKE . 'basics.php';