Skip to content

Commit 8316f27

Browse files
committed
Reversed output_data require-refactoring
1 parent 0b93772 commit 8316f27

File tree

42 files changed

+49
-40
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+49
-40
lines changed

aura-2.0/web/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
);
1717
$kernel();
1818

19-
echo require dirname(__FILE__).'/../../libs/output_data.php';
19+
require $_SERVER['DOCUMENT_ROOT'].'/php-framework-benchmark/libs/output_data.php';

bear-0.10/bootstrap/contexts/prod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
//
6666
OK: {
6767
$app->response->setResource($app->page)->render()->send();
68-
echo require dirname(__FILE__).'/../../libs/output_data.php';
68+
require $_SERVER['DOCUMENT_ROOT'].'/php-framework-benchmark/libs/output_data.php';
6969
exit(0);
7070
}
7171

bear-1.0/bootstrap/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
// representation transfer
3333
$page()->transfer($app->responder, $_SERVER);
34-
echo require dirname(__FILE__).'/../../libs/output_data.php';
34+
require $_SERVER['DOCUMENT_ROOT'].'/php-framework-benchmark/libs/output_data.php';
3535
exit(0);
3636
} catch (\Exception $e) {
3737
$app->error->handle($e, $request)->transfer();

cake-3.0/webroot/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@
3636
new Response()
3737
);
3838

39-
echo require dirname(__FILE__).'/../../libs/output_data.php';
39+
require $_SERVER['DOCUMENT_ROOT'].'/php-framework-benchmark/libs/output_data.php';

cake-3.1/src/Controller/HelloController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class HelloController extends AppController
88

99
public function index()
1010
{
11-
$this->response->body('Hello World!' . require dirname(__FILE__).'/../../../libs/output_data.php');
11+
$this->response->body('Hello World!');
1212
return $this->response;
1313
}
1414
}

cake-3.1/webroot/index.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@
3535
Request::createFromGlobals(),
3636
new Response()
3737
);
38+
39+
require $_SERVER['DOCUMENT_ROOT'].'/php-framework-benchmark/libs/output_data.php';

ci-3.0/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,4 +291,4 @@
291291
*/
292292
require_once BASEPATH.'core/CodeIgniter.php';
293293

294-
echo require dirname(__FILE__).'/../libs/output_data.php';
294+
require $_SERVER['DOCUMENT_ROOT'].'/php-framework-benchmark/libs/output_data.php';

cygnite-1.3/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@
5959
*/
6060
require_once CF_BOOTSTRAP.DS.'start'.EXT;
6161

62-
echo require dirname(__FILE__).'/../libs/output_data.php';
62+
require $_SERVER['DOCUMENT_ROOT'].'/php-framework-benchmark/libs/output_data.php';

fatfree-3.5/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99

1010
$f3->run();
1111

12-
echo require dirname(__FILE__).'/../libs/output_data.php';
12+
require $_SERVER['DOCUMENT_ROOT'].'/php-framework-benchmark/libs/output_data.php';

fuel-1.8-dev/public/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ class_alias('Fuel\\Core\\Autoloader', 'Autoloader');
101101

102102
$response->send(true);
103103

104-
echo require dirname(__FILE__).'/../../libs/output_data.php';
104+
require $_SERVER['DOCUMENT_ROOT'].'/php-framework-benchmark/libs/output_data.php';

0 commit comments

Comments
 (0)