/lib/Cake/Console/Templates/skel/Console/cake.php

https://github.com/daudmabena/real-estate-dashboard · PHP · 33 lines · 12 code · 3 blank · 18 comment · 2 complexity · e71cd76ed92b90088fd44034e42eef34 MD5 · raw file

  1. #!/usr/bin/php -q
  2. <?php
  3. /**
  4. * Command-line code generation utility to automate programmer chores.
  5. *
  6. * PHP 5
  7. *
  8. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  9. * Copyright 2005-2012, Cake Software Foundation, Inc.
  10. *
  11. * Licensed under The MIT License
  12. * Redistributions of files must retain the above copyright notice.
  13. *
  14. * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  15. * @link http://cakephp.org CakePHP(tm) Project
  16. * @package app.Console
  17. * @since CakePHP(tm) v 2.0
  18. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  19. */
  20. $ds = DIRECTORY_SEPARATOR;
  21. $dispatcher = 'Cake' . $ds . 'Console' . $ds . 'ShellDispatcher.php';
  22. if (function_exists('ini_set')) {
  23. $root = dirname(dirname(dirname(__FILE__)));
  24. ini_set('include_path', $root . PATH_SEPARATOR . __CAKE_PATH__ . PATH_SEPARATOR . ini_get('include_path'));
  25. }
  26. if (!include $dispatcher) {
  27. trigger_error('Could not locate CakePHP core files.', E_USER_ERROR);
  28. }
  29. unset($paths, $path, $dispatcher, $root, $ds);
  30. return ShellDispatcher::run($argv);