Created
August 25, 2014 07:19
-
-
Save reshadman/8828b1cdb691e644df6c to your computer and use it in GitHub Desktop.
JobManagerWrapper.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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