Skip to content

Commit

Permalink
removed includes
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhu committed Apr 4, 2024
1 parent 5b28843 commit a44f648
Show file tree
Hide file tree
Showing 18 changed files with 3 additions and 34 deletions.
1 change: 0 additions & 1 deletion lib/command/cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

// Fall back to classic Symfony loading
if (!file_exists($autoload)) {
require_once __DIR__.'/../autoload/sfCoreAutoload.class.php';
sfCoreAutoload::register();
} else {
require_once $autoload;
Expand Down
1 change: 1 addition & 0 deletions lib/task/generator/skeleton/app/web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

##IP_CHECK##
require_once(__DIR__.'/../config/ProjectConfiguration.class.php');
require_once(__DIR__.'/../vendor/autoload.php');

$configuration = ProjectConfiguration::getApplicationConfiguration('##APP_NAME##', '##ENVIRONMENT##', ##IS_DEBUG##);
sfContext::createInstance($configuration)->dispatch();
3 changes: 2 additions & 1 deletion lib/task/generator/skeleton/project/symfony
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
/*
* This file is part of the symfony package.
* (c) Fabien Potencier <[email protected]>
*
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

chdir(__DIR__);
require_once(__DIR__.'/config/ProjectConfiguration.class.php');
require_once(__DIR__.'/vendor/autoload.php');
include(sfCoreAutoload::getInstance()->getBaseDir().'/command/cli.php');
2 changes: 0 additions & 2 deletions lib/task/plugin/sfPluginAddChannelTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* file that was distributed with this source code.
*/

require_once __DIR__.'/sfPluginBaseTask.class.php';

/**
* Installs a plugin.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/task/plugin/sfPluginInstallTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* file that was distributed with this source code.
*/

require_once __DIR__.'/sfPluginBaseTask.class.php';

/**
* Installs a plugin.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/task/plugin/sfPluginListTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* file that was distributed with this source code.
*/

require_once __DIR__.'/sfPluginBaseTask.class.php';

/**
* Lists installed plugins.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/task/plugin/sfPluginPublishAssetsTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* file that was distributed with this source code.
*/

require_once __DIR__.'/sfPluginBaseTask.class.php';

/**
* Publishes Web Assets for Core and third party plugins.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/task/plugin/sfPluginUninstallTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* file that was distributed with this source code.
*/

require_once __DIR__.'/sfPluginBaseTask.class.php';

/**
* Uninstall a plugin.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/task/plugin/sfPluginUpgradeTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* file that was distributed with this source code.
*/

require_once __DIR__.'/sfPluginBaseTask.class.php';

/**
* Upgrades a plugin.
*
Expand Down
4 changes: 0 additions & 4 deletions lib/task/symfony/sfSymfonyTestTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,9 @@ protected function configure()
*/
protected function execute($arguments = [], $options = [])
{
require_once __DIR__.'/../../vendor/lime/lime.php';

require_once __DIR__.'/lime_symfony.php';

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

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

Expand Down
2 changes: 0 additions & 2 deletions lib/task/test/sfLimeHarness.class.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

require_once __DIR__.'/../../vendor/lime/lime.php';

class sfLimeHarness extends lime_harness
{
protected $plugins = [];
Expand Down
2 changes: 0 additions & 2 deletions lib/task/test/sfTestAllTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ protected function configure()
*/
protected function execute($arguments = [], $options = [])
{
require_once __DIR__.'/sfLimeHarness.class.php';

$h = new sfLimeHarness([
'force_colors' => isset($options['color']) && $options['color'],
'verbose' => isset($options['trace']) && $options['trace'],
Expand Down
2 changes: 0 additions & 2 deletions lib/task/test/sfTestCoverageTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ protected function configure()
*/
protected function execute($arguments = [], $options = [])
{
require_once sfConfig::get('sf_symfony_lib_dir').'/vendor/lime/lime.php';

$coverage = $this->getCoverage($this->getTestHarness(['force_colors' => isset($options['color']) && $options['color']]), $options['detailed']);

$testFiles = $this->getFiles(sfConfig::get('sf_root_dir').'/'.$arguments['test_name']);
Expand Down
2 changes: 0 additions & 2 deletions lib/task/test/sfTestFunctionalTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ protected function execute($arguments = [], $options = [])
return 1;
}
} else {
require_once __DIR__.'/sfLimeHarness.class.php';

$h = new sfLimeHarness([
'force_colors' => isset($options['color']) && $options['color'],
'verbose' => isset($options['trace']) && $options['trace'],
Expand Down
2 changes: 0 additions & 2 deletions lib/task/test/sfTestPluginTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ protected function execute($arguments = [], $options = [])
throw new sfCommandException(sprintf('The --only option must be either "unit" or "functional" ("%s" given)', $options['only']));
}

require_once sfConfig::get('sf_symfony_lib_dir').'/vendor/lime/lime.php';

$h = new lime_harness(new lime_output_color());
$h->base_dir = sfConfig::get('sf_plugins_dir').'/'.$arguments['plugin'].'/test/'.$options['only'];

Expand Down
2 changes: 0 additions & 2 deletions lib/task/test/sfTestUnitTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ protected function execute($arguments = [], $options = [])
$this->logSection('test', 'no tests found', null, 'ERROR');
}
} else {
require_once __DIR__.'/sfLimeHarness.class.php';

$h = new sfLimeHarness([
'force_colors' => isset($options['color']) && $options['color'],
'verbose' => isset($options['trace']) && $options['trace'],
Expand Down
2 changes: 0 additions & 2 deletions lib/test/sfTestBrowser.class.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

require_once __DIR__.'/../vendor/lime/lime.php';

/*
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <[email protected]>
Expand Down
2 changes: 0 additions & 2 deletions lib/test/sfTestFunctionalBase.class.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

require_once __DIR__.'/../vendor/lime/lime.php';

/*
* This file is part of the symfony package.
* (c) Fabien Potencier <[email protected]>
Expand Down

0 comments on commit a44f648

Please sign in to comment.