src/Controller/EntityController.php
public function connect(Application $app)
    {
        $this->modelProvider = function ($id) use ($app) {
            return $app['redbean']->load($this->table, $id);
        };

        return $app['controllers_factory'];
    }
public function connect(Application $app)
    {
        $this->modelProvider = function ($id) use ($app) {
            return $app['redbean']->load($this->table, $id);
        };

        return $app['controllers_factory'];
    }
public function connect ( Application $ app ) { $ this -> modelProvider = function ( $ id ) use ( $ app ) { return $ app [ 'redbean' ] -> load ( $ this -> table , $ id ) ; } ; return $ app [ 'controllers_factory' ] ; }
Silex method that exposes routes to the app
Attaches a model provider to the controller

@param Silex\Application $app Application instance

@return Silex\ControllerCollection Object encapsulating crafted routes
Silex method that exposes routes to the app Attaches a model provider to the controller