Skip to content

Instantly share code, notes, and snippets.

@rossriley
Last active December 3, 2016 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rossriley/aed47b9b72433e6320a39b5949f43434 to your computer and use it in GitHub Desktop.
Save rossriley/aed47b9b72433e6320a39b5949f43434 to your computer and use it in GitHub Desktop.
Local Extensions Config
paths:
web: public
themebase: public/theme
files: public/files
view: public/bolt-public/view
extensions:
- MyextOne\LocalExtensionOne
- MyextTwo\LocalExtensionTwo
- MyextThree\LocalExtensionThree
<?php
// Equivalent in PHP bootstrap
$configuration = new Bolt\Configuration\Composer(__DIR__);
$configuration->setPath("web", "public");
$configuration->setPath("files", "public/files");
$configuration->setPath("themebase", "public/theme");
$app = new Bolt\Application(['resources'=>$configuration]);
$app['extension']->register(new MyextOne\LocalExtensionOne());
$app['extension']->register(new MyextTwo\LocalExtensionTwo());
$app['extension']->register(new MyextThree\LocalExtensionThree());
$app->initialize();
return $app;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment