public function __construct(array $configs) { $this->setConfigs($configs); $this->setEnabled($this->getConfig('open-graph.enabled', false)); $this->setOpenGraph(new Entities\OpenGraph\Graph($this->getConfig('open-graph', []))); }