public function get($property, $default = null) { if (!isset($this->_properties[$property])) { return $default; } $value = $this->_properties[$property]; if ($value instanceof Closure) { $value = $value($this); } return $value; }
/** * Constructor. * * @param array $configuration Dependency injection configuration. */ public function __construct(array $configuration = []) { $this->_Container = new StandardContainer($configuration); $this->_Http = $this->_Container->get('Http'); $this->_Crawler = $this->_Container->get('Crawler'); $this->_Extractor = $this->_Container->get('Extractor'); $this->_Replacer = $this->_Container->get('Replacer'); }