Last active
December 3, 2016 12:25
-
-
Save rossriley/aed47b9b72433e6320a39b5949f43434 to your computer and use it in GitHub Desktop.
Local Extensions Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paths: | |
web: public | |
themebase: public/theme | |
files: public/files | |
view: public/bolt-public/view | |
extensions: | |
- MyextOne\LocalExtensionOne | |
- MyextTwo\LocalExtensionTwo | |
- MyextThree\LocalExtensionThree |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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