public function inherit(Container $parent)
    {
        foreach ($parent->getAll() as $name => $component) {
            if (! $this->has($name)) {
                $this->register($name, $component);
            }
        }
        return $this;
    }