mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Controller and Entity draft
This commit is contained in:
17
application/src/Controller/ActivationInterface.php
Normal file
17
application/src/Controller/ActivationInterface.php
Normal 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;
|
||||
}
|
||||
|
17
application/src/Controller/CreationInterface.php
Normal file
17
application/src/Controller/CreationInterface.php
Normal 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;
|
||||
}
|
||||
|
13
application/src/Controller/ModificationInterface.php
Normal file
13
application/src/Controller/ModificationInterface.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
namespace App\Controller;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
interface ModificationInterface
|
||||
{
|
||||
public function modify(int $id):Response;
|
||||
}
|
||||
|
12
application/src/Controller/SourceController.php
Normal file
12
application/src/Controller/SourceController.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace App\Controller;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
class SourceController implements NodeControllerInterface
|
||||
{
|
||||
}
|
||||
|
15
application/src/Controller/SourceControllerInterface.php
Normal file
15
application/src/Controller/SourceControllerInterface.php
Normal 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;
|
||||
}
|
||||
|
12
application/src/Controller/UserController.php
Normal file
12
application/src/Controller/UserController.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace App\Controller;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
class UserController implements UserControllerInterface
|
||||
{
|
||||
}
|
||||
|
18
application/src/Controller/UserControllerInterface.php
Normal file
18
application/src/Controller/UserControllerInterface.php
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user