Skip to content

Instantly share code, notes, and snippets.

@khoatran
Created February 15, 2017 15:35
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 khoatran/35be6762230de2a5494bdf01154fe1a1 to your computer and use it in GitHub Desktop.
Save khoatran/35be6762230de2a5494bdf01154fe1a1 to your computer and use it in GitHub Desktop.
Create OctoberCMS module
use App;
use October\Rain\Support\ModuleServiceProvider;
class ServiceProvider extends ModuleServiceProvider
{
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
parent::register('Api');
}
/**
* Bootstrap the module events.
*
* @return void
*/
public function boot()
{
//Override this to do nothing as in API we don't need to load unnecessary things
//parent::boot('api');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment