Skip to content

Instantly share code, notes, and snippets.

@azraai
Created January 17, 2015 15:28
Show Gist options
  • Save azraai/a6ae926650649b643c0f to your computer and use it in GitHub Desktop.
Save azraai/a6ae926650649b643c0f to your computer and use it in GitHub Desktop.
src/CoreServiceProvider.php
{
"name": "mux/core",
"description": "Core extension for Mux platform",
"license": "MIT",
"keywords": ["mux-platform", "mux", "note", "messaging"],
"authors": [
{
"name": "Ariff Azraai",
"email": "[email protected]",
"homepage": "https://github.com/azraai"
}
],
"autoload": {
"classmap": [
"resources/database/migrations"
],
"psr-4": {
"\\Mux\\Core" : "src/"
}
},
"require": {
"php": ">=5.4.0"
},
"require-dev": {
"mockery/mockery": "0.9.*",
"orchestra/foundation": "3.0.*",
}
}
<?php namespace Mux\Core;
use Orchestra\Support\Providers\ServiceProvider;
class CoreServiceProvider extends ServiceProvider
{
/**
* Register service provider.
*
* @return void
*/
public function register()
{
}
/**
* Boot the service provider
*
* @return void
*/
public function boot()
{
$path = realpath(__DIR__.'/../');
$this->app['event']->listen('orchestra.install.schema', function() {
$this->app['orchestra.publisher.migrate']->package('mux/core');
});
}
}
{
"name": "Core",
"description": "Mux Platform Core extension",
"author": "Ariff Azraai",
"url": "https://github.com/muxplatform/core",
"version": "0.1@dev",
"config": {
"handles": "core"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment