mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-08 10:49:58 +00:00
ff3f1bdcdd
- Fixed issue #227 causing custom resource-routes not to be loaded after latest update. - Optimized `RouteResource` class. - Renamed `IRestController` to `IResourceController`. - Added unit-tests for RouterResource. - Simplified unit-tests with the `TestRouter` custom router class.
47 lines
654 B
PHP
47 lines
654 B
PHP
<?php
|
|
namespace Pecee\Controllers;
|
|
|
|
interface IResourceController
|
|
{
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function index();
|
|
|
|
/**
|
|
* @param mixed $id
|
|
* @return void
|
|
*/
|
|
public function show($id);
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function store();
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function create();
|
|
|
|
/**
|
|
* View
|
|
* @param mixed $id
|
|
* @return void
|
|
*/
|
|
public function edit($id);
|
|
|
|
/**
|
|
* @param mixed $id
|
|
* @return void
|
|
*/
|
|
public function update($id);
|
|
|
|
/**
|
|
* @param mixed $id
|
|
* @return void
|
|
*/
|
|
public function destroy($id);
|
|
|
|
} |