-
Notifications
You must be signed in to change notification settings - Fork 3
/
symfony
40 lines (35 loc) · 921 Bytes
/
symfony
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env php
<?php
/*
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
// project exists?
if (file_exists('config/config.php'))
{
include('config/config.php');
}
if (!isset($sf_symfony_lib_dir))
{
$file = $argv[0];
if (is_readable(dirname($file).'/lib/symfony/VERSION'))
{
// SVN
$sf_symfony_lib_dir = dirname($file) . '/lib/symfony';
$sf_symfony_data_dir = dirname($file) . '/data/symfony';
}
else
{
// PEAR
$sf_symfony_lib_dir = '@PEAR-DIR@/symfony';
$sf_symfony_data_dir = '@DATA-DIR@/symfony';
if (!is_dir($sf_symfony_lib_dir))
{
throw new Exception('Unable to find symfony libraries');
}
}
}
include($sf_symfony_data_dir.'/bin/symfony.php');