protected function registerStaticRoutes(array $recipes = [], $route = null)
    {
        if (empty($recipes)) {
            return false;
        }

        $ctrl = 'Thapp\JitImage\Controller\JitController';

        foreach ($recipes as $aliasRoute => $formular) {

            $param = str_replace('/', '_', $aliasRoute);

            $this->app['router']
                ->get(
                    $route . '/{' . $param . '}/{source}',
                    ['uses' => $ctrl . '@getResource']
                )
                ->where($param, $aliasRoute)
                ->where('source', '(.*)');
        }

        //$this->app->bind($ctrl);
        //$this->app->extend($ctrl, function ($controller) use ($recipes) {
        //    $controller->setRecieps(new \Thapp\JitImage\RecipeResolver($recipes));
        //    return $controller;
        //});
        
        $this->app->bind($ctrl, function () use ($ctrl, $recipes) {
            $controller = new $ctrl(
                $this->app->make('Thapp\JitImage\ResolverInterface'),
                $this->app->make('Thapp\JitImage\Response\FileResponseInterface')
            );
            $controller->setRecieps(new \Thapp\JitImage\RecipeResolver($recipes));
            return $controller;
        });
    }