public function get($resource) { if (!$this->resources->containsKey($resource)) { throw new \Bonder\Exceptions\ResourceNotFoundException(); } return $this->resources->get($resource); }