function createComponent ($class, Component $parent, $props = null, array $bindings = null)
  {
    /** @var Component $component */
    $component = $this->injector->make ($class);
    /** @var DocumentContext $this */
    return $component->setup ($parent, $this, $props, $bindings);
  }