Skip to content

Commit 0128d65

Browse files
committed
Bin fixes
1 parent 886f725 commit 0128d65

File tree

4 files changed

+10
-201
lines changed

4 files changed

+10
-201
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,15 @@
4343
"helper/UrlHelper.php",
4444
"helper/ValidationHelper.php",
4545
"includes/pakeFunction.php",
46-
"includes/util.php"
46+
"includes/util.php",
4747
],
4848
"classmap": [
4949
"lib/"
5050
]
5151
},
52+
"bin": [
53+
"/data/bin/symfony.php"
54+
],
5255
"require-dev": {
5356
"rector/rector": "^0.11.60"
5457
},

data/bin/create_sandbox.sh

Lines changed: 0 additions & 67 deletions
This file was deleted.

data/bin/release.php

Lines changed: 0 additions & 116 deletions
This file was deleted.

data/bin/symfony

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/*
55
* This file is part of the symfony package.
66
* (c) 2004-2006 Fabien Potencier <[email protected]>
7-
*
7+
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
1010
*/
@@ -17,23 +17,12 @@ if (file_exists('config/config.php'))
1717

1818
if (!isset($sf_symfony_lib_dir))
1919
{
20-
if (is_readable(dirname(__FILE__).'/../../lib/VERSION'))
21-
{
22-
// SVN
23-
$sf_symfony_lib_dir = realpath(dirname(__FILE__).'/../../lib');
24-
$sf_symfony_data_dir = realpath(dirname(__FILE__).'/..');
25-
}
26-
else
27-
{
28-
// PEAR
29-
$sf_symfony_lib_dir = '@PEAR-DIR@/symfony';
30-
$sf_symfony_data_dir = '@DATA-DIR@/symfony';
20+
throw new Exception('Unable to find symfony libraries due to missing config $sf_symfony_lib_dir');
21+
}
3122

32-
if (!is_dir($sf_symfony_lib_dir))
33-
{
34-
throw new Exception('Unable to find symfony libraries');
35-
}
36-
}
23+
if (!isset($sf_symfony_data_dir))
24+
{
25+
throw new Exception('Unable to find symfony libraries due to missing config $sf_symfony_data_dir');
3726
}
3827

3928
include($sf_symfony_data_dir.'/bin/symfony.php');

0 commit comments

Comments
 (0)