public function __construct(Iface $core, $handler) { if (!is_callable($handler)) { throw new Exception('invalid logging handler', $handler); } $this->handler = $handler; parent::__construct($core); }
/** * attach the core object and the binder, which connects stockpile data to souk. * This binder object should remain consistent throughout your application. */ public function __construct(Iface $core, StockpileBinder_Iface $binder) { parent::__construct($core); $this->binder = $binder; }
public function __construct(Iface $core, Store\Iface $cacher) { parent::__construct($core); $this->cacher = $cacher; }