Skip to content

Instantly share code, notes, and snippets.

@reshadman
Created August 25, 2014 07:19
Show Gist options
  • Save reshadman/8828b1cdb691e644df6c to your computer and use it in GitHub Desktop.
Save reshadman/8828b1cdb691e644df6c to your computer and use it in GitHub Desktop.
JobManagerWrapper.php
<?php
class JobManagerWrapper {
public function __call($method, $args)
{
$instance = App::make('JobManager');
return call_user_func_array([$instance, $job], $args);
}
}
class ServiceProvider {
public function register ()
{
$this->app->bind('JobManager',function($app){
return App::make('JobManagerWrapper');
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment