CRUDlex\ControllerProvider::connect PHP Method

connect() public method

Implements ControllerProviderInterface::connect() connecting this controller.
public connect ( Silex\Application $app ) : SilexController\Collection
$app Silex\Application the Application instance of the Silex application
return SilexController\Collection this method is expected to return the used ControllerCollection instance
    public function connect(Application $app)
    {
        $this->setupTemplates($app);
        $factory = $this->setupRoutes($app);
        $this->setupI18n($app);
        return $factory;
    }