public function define($name, callable $factoryMethod) { $this->definitions[$name] = $factoryMethod; return $this; }