Download bootstrap/app.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 951 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/bootstrap/app.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/bootstrap/app.php
-
curl -L -o app.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/bootstrap/app.php
951 Bytes
| declare(strict_types=1); | |
| use Easy\Container\Container; | |
| use Psr\Container\ContainerInterface; | |
| use Shared\Infrastructure\BootstrapperInterface; | |
| use Shared\Infrastructure\ServiceProviderInterface; | |
| /** | |
| * Bootstraps the application and the container. | |
| * Returns the container instance. | |
| * | |
| * @return ContainerInterface | |
| */ | |
| // Make everything relative to the application root directory. | |
| chdir(dirname(__DIR__)); | |
| // Configure class autoloading | |
| require __DIR__ . '/autoload.php'; | |
| /** @var Container $container */ | |
| $container = require 'container.php'; | |
| /** @var (ServiceProviderInterface|string)[] $providers */ | |
| $providers = $container->get('providers'); | |
| /** @var (BootstrapperInterface|string)[] $bootstrappers */ | |
| $bootstrappers = $container->get('bootstrappers'); | |
| $app = new Application($container, (bool) env('DEBUG', true)); | |
| $app->addServiceProvider(...$providers) | |
| ->addBootstrapper(...$bootstrappers) | |
| ->boot(); | |
| return $container; | |