Skip to content

Instantly share code, notes, and snippets.

@alexeygon
alexeygon / app-silex.php
Created Oct 26, 2015 — forked from ziadoz/app-silex.php
Slim Framework Controller Strategies (Simple/Silex)
View app-silex.php
<?php
// Silex Style Controllers
class App extends \Slim\Slim
{
public function mount($controller)
{
if (! is_object($controller)) {
throw new \InvalidArgumentException('Controller must be an object.');
}