diff --git a/composer.lock b/composer.lock index 5e6c6fd..3abeb0a 100644 --- a/composer.lock +++ b/composer.lock @@ -321,7 +321,7 @@ "dist": { "type": "path", "url": "../seacms-app", - "reference": "13832e4cc764530c6e86cc6976136a9899a9c507" + "reference": "1a75dad626a585e25aa5c744ef8ae9fdeadaf68b" }, "require": { "composer": "^2.4", @@ -342,6 +342,11 @@ "pico-plugin-dir": "vendor/picocms/plugins/", "pico-theme-dir": "vendor/picocms/themes/" }, + "autoload": { + "classmap": [ + "App.php" + ] + }, "archive": { "exclude": [ "vendor", 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');