/** * Register the decorator. If you want to extend the decorator you would basically copy * what this method does in start/global.php or your own service provider. * * @return void */ public function registerDecorator() { $this->app['presenter.decorator'] = $this->app->share(function ($app) { $decorator = new Decorator(); // This isn't really doing anything here however if you want to extend the decorator // with your own instance then you need to do it like this in your own service // provider or in start/global.php. Presenter::setExtendedDecorator($decorator); return $decorator; }); }
public function __construct($object, PercentageService $percentageService) { parent::__construct($object); $this->percentageService = $percentageService; }
/** * Call unknown methods if safe. * * @param string $method * @param array $arguments * @return mixed */ public function __call($method, $arguments) { if (in_array(snake_case($method), $this->protected)) { return null; } return parent::__call($method, $arguments); // TODO: Change the autogenerated stub }
public function __construct($object, $converter) { parent::__construct($object); $this->converter = $converter; }
public function __construct(Job $job, Markdown $markdown) { parent::__construct($job); $this->markdown = $markdown; }