mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-18 03:41:25 +02:00
WIP: Ignition
This commit is contained in:
@@ -22,7 +22,7 @@ return [
|
||||
/** Array of application middlewares */
|
||||
'middlewares' => function (): array {
|
||||
return [
|
||||
Middlewares\WhoopsMiddleware::class,
|
||||
// Middlewares\WhoopsMiddleware::class,
|
||||
Middlewares\PruneCacheMiddleware::class,
|
||||
Middlewares\CacheControlMiddleware::class,
|
||||
Middlewares\RegisterGlobalsMiddleware::class,
|
||||
@@ -61,5 +61,5 @@ return [
|
||||
Symfony\Contracts\Cache\CacheInterface::class => DI\factory(Factories\CacheFactory::class),
|
||||
Symfony\Contracts\Translation\TranslatorInterface::class => DI\factory(Factories\TranslationFactory::class),
|
||||
Slim\Views\Twig::class => DI\factory(Factories\TwigFactory::class),
|
||||
Whoops\RunInterface::class => DI\create(Whoops\Run::class),
|
||||
// Whoops\RunInterface::class => DI\create(Whoops\Run::class),
|
||||
];
|
||||
|
@@ -22,7 +22,7 @@ class AppManager
|
||||
{
|
||||
$app = Bridge::create($this->container);
|
||||
$this->container->call(MiddlewareManager::class);
|
||||
$this->container->call(ExceptionManager::class);
|
||||
// $this->container->call(ExceptionManager::class);
|
||||
$this->container->call(RouteManager::class);
|
||||
|
||||
return $app;
|
||||
|
@@ -5,6 +5,7 @@ namespace App\Controllers;
|
||||
use App\Config;
|
||||
use Exception;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use RuntimeException;
|
||||
use Slim\Psr7\Request;
|
||||
use Slim\Psr7\Response;
|
||||
use Slim\Views\Twig;
|
||||
@@ -42,6 +43,8 @@ class DirectoryController
|
||||
/** Invoke the IndexController. */
|
||||
public function __invoke(Request $request, Response $response): ResponseInterface
|
||||
{
|
||||
throw new RuntimeException('Test exception; please ignore');
|
||||
|
||||
$path = $request->getQueryParams()['dir'] ?? '.';
|
||||
|
||||
try {
|
||||
|
@@ -13,12 +13,11 @@
|
||||
"issues": "https://github.com/DirectoryLister/DirectoryLister/issues"
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.4 || ^8.0 || ^8.1",
|
||||
"php": "^8.0 || ^8.1",
|
||||
"ext-dom": "*",
|
||||
"ext-fileinfo": "*",
|
||||
"ext-zip": "*",
|
||||
"erusev/parsedown-extra": "^0.8.1",
|
||||
"filp/whoops": "^2.7",
|
||||
"phlak/splat": "^4.0",
|
||||
"php-di/php-di": "^6.0",
|
||||
"php-di/slim-bridge": "^3.0",
|
||||
@@ -26,6 +25,7 @@
|
||||
"slim/psr7": "^1.0",
|
||||
"slim/slim": "^4.3",
|
||||
"slim/twig-view": "^3.0",
|
||||
"spatie/ignition": "^1.0",
|
||||
"symfony/cache": "^5.0",
|
||||
"symfony/finder": "^5.0",
|
||||
"symfony/translation": "^5.0",
|
||||
@@ -60,7 +60,7 @@
|
||||
"config": {
|
||||
"optimize-autoloader": true,
|
||||
"platform": {
|
||||
"php": "7.4"
|
||||
"php": "8.0"
|
||||
},
|
||||
"platform-check": true,
|
||||
"sort-packages": true,
|
||||
|
2696
composer.lock
generated
2696
composer.lock
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user