Skip to content

Commit

Permalink
Upgrade to skeleton-core v4
Browse files Browse the repository at this point in the history
  • Loading branch information
gerryd committed Mar 18, 2023
1 parent 4cb9f9b commit 30bcb10
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
8 changes: 3 additions & 5 deletions app/example/module/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@

namespace App\Example\Module;

use \Skeleton\Core\Application\Web\Module;
use \Skeleton\Core\Web\Session;
use \Skeleton\Core\Web\Template;
use Skeleton\Application\Web\Module;
use Skeleton\Application\Web\Template;
use Skeleton\Core\Http\Session;

class Index extends Module {

public $login_required = true;

/**
* Template
*
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"description": "Tigron Skeleton",
"type": "project",
"require": {
"tigron/skeleton-application-web": "*",
"tigron/skeleton-console": "*",
"tigron/skeleton-core": "*",
"tigron/skeleton-database": "*",
Expand Down
9 changes: 5 additions & 4 deletions config/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@

return [
// Where skeleton can find various parts of your application
'application_dir' => dirname(__FILE__) . '/../app/',
'asset_dir' => dirname(__FILE__) . '/../lib/external/assets/',
'tmp_dir' => dirname(__FILE__) . '/../tmp/',
'lib_dir' => dirname(__FILE__) . '/../lib/',
'application_path' => dirname(__FILE__) . '/../app/',
'asset_paths' => [
dirname(__FILE__) . '/../lib/external/assets/',
],
'tmp_path' => dirname(__FILE__) . '/../tmp/',

// Display or hide errors
'debug' => true,
Expand Down
2 changes: 1 addition & 1 deletion lib/base/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static function boot() {
/**
* Initialize the template
*/
\Skeleton\Template\Twig\Config::$cache_directory = $config->tmp_dir . 'twig/';
\Skeleton\Template\Twig\Config::$cache_directory = $config->tmp_path . 'twig/';
\Skeleton\Template\Twig\Config::$debug = $config->debug;
}
}
2 changes: 1 addition & 1 deletion webroot/handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
require_once '../lib/base/Bootstrap.php';
Bootstrap::boot();

\Skeleton\Core\Web\Handler::run();
\Skeleton\Core\Http\Handler::Run();

0 comments on commit 30bcb10

Please sign in to comment.