return class_alias($app['config']['app.aliases'][$className], $className); } return false; }, true, true); /* |-------------------------------------------------------------------------- | Bind Paths |-------------------------------------------------------------------------- | | Here we are binding the paths configured in paths.php to the app. You | should not be changing these here. If you need to change these you | may do so within the paths.php file and they will be bound here. | */ $app->bindInstallPaths(require __DIR__ . '/paths.php'); /* |-------------------------------------------------------------------------- | Configure Restler to adapt to Laravel 4.2 structure |-------------------------------------------------------------------------- */ use Luracast\Restler\Defaults; use Luracast\Restler\Format\HtmlFormat; use Luracast\Restler\UI\Forms; use Luracast\Restler\UI\FormStyles; use Luracast\Restler\Scope; $app['config']['app.aliases'] += Scope::$classAliases + ['Scope' => 'Luracast\\Restler\\Scope']; HtmlFormat::$viewPath = $app['path'] . '/views'; HtmlFormat::$cacheDirectory = $app['path.storage'] . '/views'; Defaults::$cacheDirectory = $app['path.storage'] . '/cache'; HtmlFormat::$template = 'blade'; Forms::$style = FormStyles::$bootstrap3;