for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Magister\Services\Support;
use BadMethodCallException;
use Magister\Magister;
/**
* Class ServiceProvider.
*/
abstract class ServiceProvider
{
* The application implementation.
*
* @var \Magister\Magister
protected $app;
* Create a new service provider instance.
* @param \Magister\Magister $app
public function __construct(Magister $app)
$this->app = $app;
}
* Register bindings in the container.
* @return void
abstract public function register();
* Dynamically handle missing method calls.
* @param string $method
* @param array $parameters
* @throws \BadMethodCallException
* @return mixed
public function __call($method, $parameters)
if ($method == 'boot') {
return;
throw new BadMethodCallException(sprintf('Call to undefined method "%s"', $method));