Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
replace: require_once with require
Browse files Browse the repository at this point in the history
  • Loading branch information
darkalchemy committed Jan 23, 2022
1 parent 81d52fd commit df35dc0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bin/utilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Delight\I18n\I18n;

$container = (require_once __DIR__ . '/../bootstrap/app.php')->getContainer();
$container = (require __DIR__ . '/../bootstrap/app.php')->getContainer();

$processes = [
'compile',
Expand Down
4 changes: 2 additions & 2 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
use UMA\RedisSessionHandler;

$startTime = microtime(true);
require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../config/constants.php';
require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/../config/constants.php';

try {
$container = (new ContainerFactory())->createContainer();
Expand Down
4 changes: 2 additions & 2 deletions bootstrap/jobby.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Jobby\Jobby;
use Selective\Config\Configuration;

$app = require_once __DIR__ . '/app.php';
$app = require __DIR__ . '/app.php';
$container = $app->getContainer();
$jobby = $container->get(Jobby::class);
$loggerFactory = $container->get(LoggerFactory::class);
Expand All @@ -26,7 +26,7 @@
$jobby->add('Send Email', [
'runAs' => 'www-data',
'command' => function () {
$container = (require_once __DIR__ . '/app.php')->getContainer();
$container = (require __DIR__ . '/app.php')->getContainer();
$email = $container->get(Email::class);
$emails = $email->with('user')->where('sent', 0)->orderBy('priority')->orderBy('created_at')->take(10)->get();
$sendmail = $container->get(SendMail::class);
Expand Down
2 changes: 1 addition & 1 deletion config/phinx.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Selective\Config\Configuration;

$container = (require_once __DIR__ . '/../bootstrap/app.php')->getContainer();
$container = (require __DIR__ . '/../bootstrap/app.php')->getContainer();
$db = $container->get(Configuration::class)->getArray('db');

return [
Expand Down
2 changes: 1 addition & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

declare(strict_types=1);

(require_once __DIR__ . '/../bootstrap/app.php')->run();
(require __DIR__ . '/../bootstrap/app.php')->run();

0 comments on commit df35dc0

Please sign in to comment.