-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0dd6d0e
commit 0fa4d5c
Showing
738 changed files
with
68,189 additions
and
1,230 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
<?php | ||
namespace ClassLeak202412; | ||
|
||
require __DIR__ . '/class-leak.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
declare (strict_types=1); | ||
namespace ClassLeak202412; | ||
|
||
use Symfony\Component\Console\Application; | ||
use Symfony\Component\Console\Input\ArgvInput; | ||
use Symfony\Component\Console\Output\ConsoleOutput; | ||
use ClassLeak202412\Symfony\Component\Console\Application; | ||
use ClassLeak202412\Symfony\Component\Console\Input\ArgvInput; | ||
use ClassLeak202412\Symfony\Component\Console\Output\ConsoleOutput; | ||
use TomasVotruba\ClassLeak\DependencyInjection\ContainerFactory; | ||
|
||
if (file_exists(__DIR__ . '/../../../../vendor/autoload.php')) { | ||
if (\file_exists(__DIR__ . '/../../../../vendor/autoload.php')) { | ||
// project's autoload | ||
require_once __DIR__ . '/../../../../vendor/autoload.php'; | ||
} | ||
|
||
if (file_exists(__DIR__ . '/../vendor/scoper-autoload.php')) { | ||
if (\file_exists(__DIR__ . '/../vendor/scoper-autoload.php')) { | ||
// A. build downgraded package | ||
require_once __DIR__ . '/../vendor/scoper-autoload.php'; | ||
} else { | ||
// B. local repository | ||
require_once __DIR__ . '/../vendor/autoload.php'; | ||
} | ||
|
||
$containerFactory = new ContainerFactory(); | ||
$container = $containerFactory->create(); | ||
|
||
/** @var Application $application */ | ||
$application = $container->make(Application::class); | ||
|
||
$exitCode = $application->run(new ArgvInput(), new ConsoleOutput()); | ||
exit($exitCode); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.