diff --git a/composer.lock b/composer.lock index ec4a328..764fa0a 100644 --- a/composer.lock +++ b/composer.lock @@ -264,7 +264,7 @@ "source": { "type": "git", "url": "https://git.defis.info/SeaCMS/seacms-app", - "reference": "13832e4cc764530c6e86cc6976136a9899a9c507" + "reference": "1a75dad626a585e25aa5c744ef8ae9fdeadaf68b" }, "require": { "composer": "^2.4", @@ -286,6 +286,11 @@ "pico-plugin-dir": "vendor/picocms/plugins/", "pico-theme-dir": "vendor/picocms/themes/" }, + "autoload": { + "classmap": [ + "App.php" + ] + }, "archive": { "exclude": [ "vendor", @@ -307,7 +312,7 @@ "license": [ "EUPL-1.2" ], - "time": "2023-02-22T18:48:16+00:00" + "time": "2023-02-23T10:43:01+00:00" }, { "name": "seacms/seacms-theme", diff --git a/index.php b/index.php index d05092c..a460aef 100644 --- a/index.php +++ b/index.php @@ -9,24 +9,4 @@ if (is_file(__DIR__ . '/vendor/autoload.php')) { include_once(__DIR__ . '/vendor/autoload.php'); } - -try { - // instance Pico - $pico = new Pico( - __DIR__, // root dir - 'content/', // config dir - 'vendor/picocms/plugins/', // plugins dir - 'vendor/picocms/themes/' // themes dir - ); - - // run application - $output = $pico->run(); -} catch (Throwable $th) { - $output = << - Exception : {$th->__toString()} - - HTML; -} - -echo $output; +\SeaCMS\App::run('content');