Skip to content

Commit

Permalink
Upgrade to skeleton-core v2
Browse files Browse the repository at this point in the history
  • Loading branch information
gerryd committed May 17, 2022
1 parent 8ada319 commit 9ab0064
Show file tree
Hide file tree
Showing 29 changed files with 113 additions and 780 deletions.
20 changes: 9 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
.environment.php
tmp/twig/*
tmp/log/*
tmp/languages/*
store/file/*
store/documentation/*
lib/external/packages/*
lib/external/assets/*
composer.lock
migrations/db_version
util/tmp/*
/config/environment.php
/tmp/twig/*
/tmp/log/*
/tmp/languages/*
/lib/external/packages/*
/lib/external/assets/*
/composer.lock
/migrations/db_version
/util/tmp/*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ any project you may have.
* Make sure your server sends all requests to `webroot/handler.php`, if your
server supports `.htaccess` files, that should happen automatically
* Create a database
* Create a `.environment.php` file, containing at least the DSN for your
* Create a `confog/environment.php` file, containing at least the DSN for your
database
* Run `composer update`
* Run `util/bin/skeleton migrate:up`
Expand Down
44 changes: 0 additions & 44 deletions app/admin/config/Config.php

This file was deleted.

62 changes: 0 additions & 62 deletions app/admin/event/Application.php

This file was deleted.

37 changes: 0 additions & 37 deletions app/admin/module/404.php

This file was deleted.

61 changes: 0 additions & 61 deletions app/admin/module/picture.php

This file was deleted.

4 changes: 4 additions & 0 deletions app/example/config/core.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
return [
'hostnames' => ['*'],
];
19 changes: 9 additions & 10 deletions app/admin/module/index.php → app/example/module/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@
* @author David Vandemaele <david@tigron.be>
*/

use Skeleton\Core\Web\Module;
namespace App\Example\Module;

class Web_Module_Index extends Module {
use \Skeleton\Core\Application\Web\Module;
use \Skeleton\Core\Web\Session;
use \Skeleton\Core\Web\Template;

/**
* Login required
*
* @var $login_required
*/
protected $login_required = false;
class Index extends Module {

public $login_required = true;

/**
* Template
Expand All @@ -27,10 +26,10 @@ class Web_Module_Index extends Module {
protected $template = 'index.twig';

/**
* Display method
* Display method.
*
* @access public
*/
public function display() {
public function display(): void {
}
}
File renamed without changes.
12 changes: 4 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,14 @@
"description": "Tigron Skeleton",
"type": "project",
"require": {
"tigron/skeleton-i18n": "*",
"tigron/skeleton-console": "*",
"tigron/skeleton-core": "*",
"tigron/skeleton-database": "*",
"tigron/skeleton-error": "*",
"tigron/skeleton-migrate": "*",
"tigron/skeleton-object": "*",
"tigron/skeleton-database": "*",
"tigron/skeleton-template": "*",
"tigron/skeleton-template-twig": "*",
"tigron/skeleton-migrate": "*",
"tigron/skeleton-console": "*"
},
"suggest": {
"tigron/skeleton-pager": "*"
"tigron/skeleton-template-twig": "*"
},
"license": "MIT",
"authors": [
Expand Down
Loading

0 comments on commit 9ab0064

Please sign in to comment.