統計
| ブランチ: | リビジョン:

pictcode_admin / app / Console / cake.php @ 5ad38a95

履歴 | 表示 | アノテート | ダウンロード (1.57 KB)

1
#!/usr/bin/php -q
2
<?php
3
/**
4
 * Command-line code generation utility to automate programmer chores.
5
 *
6
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
7
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
8
 *
9
 * Licensed under The MIT License
10
 * For full copyright and license information, please see the LICENSE.txt
11
 * Redistributions of files must retain the above copyright notice.
12
 *
13
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
14
 * @link          http://cakephp.org CakePHP(tm) Project
15
 * @package       app.Console
16
 * @since         CakePHP(tm) v 2.0
17
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
18
 */
19

    
20
if (!defined('DS')) {
21
        define('DS', DIRECTORY_SEPARATOR);
22
}
23

    
24
$dispatcher = 'Cake' . DS . 'Console' . DS . 'ShellDispatcher.php';
25

    
26
if (function_exists('ini_set')) {
27
        $root = dirname(dirname(dirname(__FILE__)));
28
        $appDir = basename(dirname(dirname(__FILE__)));
29
        $install = $root . DS . 'lib';
30
        $composerInstall = $root . DS . $appDir . DS . 'Vendor' . DS . 'cakephp' . DS . 'cakephp' . DS . 'lib';
31

    
32
        // the following lines differ from its sibling
33
        // /lib/Cake/Console/Templates/skel/Console/cake.php
34
        if (file_exists($composerInstall . DS . $dispatcher)) {
35
                $install = $composerInstall;
36
        }
37

    
38
        ini_set('include_path', $install . PATH_SEPARATOR . ini_get('include_path'));
39
        unset($root, $appDir, $install, $composerInstall);
40
}
41

    
42
if (!include $dispatcher) {
43
        trigger_error('Could not locate CakePHP core files.', E_USER_ERROR);
44
}
45
unset($dispatcher);
46

    
47
return ShellDispatcher::run($argv);