Skip to content

Commit 8cfa5b3

Browse files
committed
removed includes
1 parent 1b271a4 commit 8cfa5b3

18 files changed

+3
-34
lines changed

lib/command/cli.php

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
// Fall back to classic Symfony loading
1919
if (!file_exists($autoload)) {
20-
require_once __DIR__.'/../autoload/sfCoreAutoload.class.php';
2120
sfCoreAutoload::register();
2221
} else {
2322
require_once $autoload;

lib/task/generator/skeleton/app/web/index.php

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
##IP_CHECK##
44
require_once(__DIR__.'/../config/ProjectConfiguration.class.php');
5+
require_once(__DIR__.'/../vendor/autoload.php');
56

67
$configuration = ProjectConfiguration::getApplicationConfiguration('##APP_NAME##', '##ENVIRONMENT##', ##IS_DEBUG##);
78
sfContext::createInstance($configuration)->dispatch();

lib/task/generator/skeleton/project/symfony

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
/*
55
* This file is part of the symfony package.
66
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
7-
*
7+
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
1010
*/
1111

1212
chdir(__DIR__);
1313
require_once(__DIR__.'/config/ProjectConfiguration.class.php');
14+
require_once(__DIR__.'/vendor/autoload.php');
1415
include(sfCoreAutoload::getInstance()->getBaseDir().'/command/cli.php');

lib/task/plugin/sfPluginAddChannelTask.class.php

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
* file that was distributed with this source code.
99
*/
1010

11-
require_once __DIR__.'/sfPluginBaseTask.class.php';
12-
1311
/**
1412
* Installs a plugin.
1513
*

lib/task/plugin/sfPluginInstallTask.class.php

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
* file that was distributed with this source code.
99
*/
1010

11-
require_once __DIR__.'/sfPluginBaseTask.class.php';
12-
1311
/**
1412
* Installs a plugin.
1513
*

lib/task/plugin/sfPluginListTask.class.php

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
* file that was distributed with this source code.
99
*/
1010

11-
require_once __DIR__.'/sfPluginBaseTask.class.php';
12-
1311
/**
1412
* Lists installed plugins.
1513
*

lib/task/plugin/sfPluginPublishAssetsTask.class.php

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
* file that was distributed with this source code.
99
*/
1010

11-
require_once __DIR__.'/sfPluginBaseTask.class.php';
12-
1311
/**
1412
* Publishes Web Assets for Core and third party plugins.
1513
*

lib/task/plugin/sfPluginUninstallTask.class.php

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
* file that was distributed with this source code.
99
*/
1010

11-
require_once __DIR__.'/sfPluginBaseTask.class.php';
12-
1311
/**
1412
* Uninstall a plugin.
1513
*

lib/task/plugin/sfPluginUpgradeTask.class.php

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
* file that was distributed with this source code.
99
*/
1010

11-
require_once __DIR__.'/sfPluginBaseTask.class.php';
12-
1311
/**
1412
* Upgrades a plugin.
1513
*

lib/task/symfony/sfSymfonyTestTask.class.php

-4
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,9 @@ protected function configure()
4343
*/
4444
protected function execute($arguments = [], $options = [])
4545
{
46-
require_once __DIR__.'/../../vendor/lime/lime.php';
47-
4846
require_once __DIR__.'/lime_symfony.php';
4947

5048
// cleanup
51-
require_once __DIR__.'/../../util/sfToolkit.class.php';
5249
if ($files = glob(sys_get_temp_dir().DIRECTORY_SEPARATOR.'/sf_autoload_unit_*')) {
5350
foreach ($files as $file) {
5451
unlink($file);
@@ -57,7 +54,6 @@ protected function execute($arguments = [], $options = [])
5754

5855
// update sfCoreAutoload
5956
if ($options['update-autoloader']) {
60-
require_once __DIR__.'/../../autoload/sfCoreAutoload.class.php';
6157
sfCoreAutoload::make();
6258
}
6359

lib/task/test/sfLimeHarness.class.php

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
require_once __DIR__.'/../../vendor/lime/lime.php';
4-
53
class sfLimeHarness extends lime_harness
64
{
75
protected $plugins = [];

lib/task/test/sfTestAllTask.class.php

-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ protected function configure()
7373
*/
7474
protected function execute($arguments = [], $options = [])
7575
{
76-
require_once __DIR__.'/sfLimeHarness.class.php';
77-
7876
$h = new sfLimeHarness([
7977
'force_colors' => isset($options['color']) && $options['color'],
8078
'verbose' => isset($options['trace']) && $options['trace'],

lib/task/test/sfTestCoverageTask.class.php

-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ protected function configure()
5252
*/
5353
protected function execute($arguments = [], $options = [])
5454
{
55-
require_once sfConfig::get('sf_symfony_lib_dir').'/vendor/lime/lime.php';
56-
5755
$coverage = $this->getCoverage($this->getTestHarness(['force_colors' => isset($options['color']) && $options['color']]), $options['detailed']);
5856

5957
$testFiles = $this->getFiles(sfConfig::get('sf_root_dir').'/'.$arguments['test_name']);

lib/task/test/sfTestFunctionalTask.class.php

-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ protected function execute($arguments = [], $options = [])
8787
return 1;
8888
}
8989
} else {
90-
require_once __DIR__.'/sfLimeHarness.class.php';
91-
9290
$h = new sfLimeHarness([
9391
'force_colors' => isset($options['color']) && $options['color'],
9492
'verbose' => isset($options['trace']) && $options['trace'],

lib/task/test/sfTestPluginTask.class.php

-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ protected function execute($arguments = [], $options = [])
5959
throw new sfCommandException(sprintf('The --only option must be either "unit" or "functional" ("%s" given)', $options['only']));
6060
}
6161

62-
require_once sfConfig::get('sf_symfony_lib_dir').'/vendor/lime/lime.php';
63-
6462
$h = new lime_harness(new lime_output_color());
6563
$h->base_dir = sfConfig::get('sf_plugins_dir').'/'.$arguments['plugin'].'/test/'.$options['only'];
6664

lib/task/test/sfTestUnitTask.class.php

-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ protected function execute($arguments = [], $options = [])
8080
$this->logSection('test', 'no tests found', null, 'ERROR');
8181
}
8282
} else {
83-
require_once __DIR__.'/sfLimeHarness.class.php';
84-
8583
$h = new sfLimeHarness([
8684
'force_colors' => isset($options['color']) && $options['color'],
8785
'verbose' => isset($options['trace']) && $options['trace'],

lib/test/sfTestBrowser.class.php

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
require_once __DIR__.'/../vendor/lime/lime.php';
4-
53
/*
64
* This file is part of the symfony package.
75
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>

lib/test/sfTestFunctionalBase.class.php

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
require_once __DIR__.'/../vendor/lime/lime.php';
4-
53
/*
64
* This file is part of the symfony package.
75
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>

0 commit comments

Comments
 (0)