Skip to content

Commit

Permalink
Mise à jour pour la version alpha9 du CMS.
Browse files Browse the repository at this point in the history
  • Loading branch information
noelma committed Nov 20, 2019
1 parent b2bf90b commit 134affc
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 60 deletions.
14 changes: 14 additions & 0 deletions Config/routes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

use Soosyze\Components\Router\Route as R;

R::useNamespace('SoosyzeExtension\Starterkit\Controller');

R::get('starterkit.index', 'starterkit/index', 'Starterkit@index');
R::get('starterkit.admin', 'admin/starterkit', 'Starterkit@admin');
R::get('starterkit.show', 'starterkit/:id', 'Starterkit@show', [':id' => '\d']);
R::get('starterkit.create', 'starterkit/item', 'Starterkit@create');
R::post('starterkit.store', 'starterkit/item', 'Starterkit@store');
R::get('starterkit.edit', 'starterkit/:id/edit', 'Starterkit@edit', [':id' => '\d']);
R::post('starterkit.update', 'starterkit/:id/edit', 'Starterkit@update', [':id' => '\d']);
R::post('starterkit.delete', 'starterkit/:id/delete', 'Starterkit@delete', [':id' => '\d']);
54 changes: 0 additions & 54 deletions Config/routing.json

This file was deleted.

2 changes: 1 addition & 1 deletion Controller/Starterkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Starterkit extends \Soosyze\Controller
public function __construct()
{
$this->pathServices = dirname(__DIR__) . '/Config/service.json';
$this->pathRoutes = dirname(__DIR__) . '/Config/routing.json';
$this->pathRoutes = dirname(__DIR__) . '/Config/routes.php';
$this->pathViews = dirname(__DIR__) . '/Views/';
}

Expand Down
2 changes: 1 addition & 1 deletion Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class Installer implements \SoosyzeCore\System\Migration
{
public function getComposer()
public function getDir()
{
return __DIR__ . '/composer.json';
}
Expand Down
6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
}
},
"extra": {
"soosyze-module": {
"soosyze": {
"title": "Starterkit",
"package": "Development",
"controllers": {
"Starterkit": "SoosyzeExtension\\Starterkit\\Controller\\Starterkit"
},
"controller": "SoosyzeExtension\\Starterkit\\Controller\\Starterkit",
"icon": {
"background-color": "#222351",
"color": "#fff"
Expand Down

0 comments on commit 134affc

Please sign in to comment.