Controller and Entity draft

This commit is contained in:
Kevin Frantz
2018-09-05 15:46:14 +02:00
parent 3a4f3f6654
commit 8ead5a5df4
17 changed files with 377 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
/**
*
* @author kevinfrantz
*
*/
interface ActivationInterface
{
public function deactivate():Response;
public function activate():Response;
}

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
/**
*
* @author kevinfrantz
*
*/
interface CreationInterface
{
public function create():Response;
public function delete():Response;
}

View File

@@ -0,0 +1,13 @@
<?php
namespace App\Controller;
/**
*
* @author kevinfrantz
*
*/
interface ModificationInterface
{
public function modify(int $id):Response;
}

View File

@@ -0,0 +1,12 @@
<?php
namespace App\Controller;
/**
*
* @author kevinfrantz
*
*/
class SourceController implements NodeControllerInterface
{
}

View File

@@ -0,0 +1,15 @@
<?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
/**
*
* @author kevinfrantz
*
*/
interface SourceControllerInterface extends CreationInterface, ActivationInterface, ModificationInterface
{
public function show(int $id):Response;
}

View File

@@ -0,0 +1,12 @@
<?php
namespace App\Controller;
/**
*
* @author kevinfrantz
*
*/
class UserController implements UserControllerInterface
{
}

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
/**
*
* @author kevinfrantz
*
*/
interface UserControllerInterface extends CreationInterface, ActivationInterface,ModificationInterface
{
public function logout():Response;
public function login():Response;
public function register():Response;
}