Skip to content

Commit

Permalink
Create a default site bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
GwendolenLynch committed Oct 11, 2017
1 parent c26cbd9 commit 905f862
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .bolt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
extensions:
- Bolt\Bundle\Site\SiteExtension
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
"nut extensions:setup"
]
},
"autoload": {
"psr-4": {
"Bolt\\Bundle\\Site\\": "src/Site"
}
},
"extra": {
"branch-alias": {
"dev-3.4" : "3.4.x-dev"
Expand Down
27 changes: 27 additions & 0 deletions src/Site/SiteBundleLoader.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

namespace Bolt\Bundle\Site;

use Bolt\Extension\SimpleExtension;

/**
* Site bundle extension loader.
*
* This is the base bundle you can use to further customise Bolt for your
* specific site.
*
* It is perfectly safe to remove this bundle, just remember to remove the
* entry from your .bolt.yml or .bolt.php file.
*
* For more information on building bundles see https://docs.bolt.cm/extensions
*/
class SiteBundleLoader extends SimpleExtension
{
/**
* {@inheritdoc}
*/
public function getDisplayName()
{
return 'Site Customisation Bundle';
}
}

0 comments on commit 905f862

Please sign in to comment.