code: private function getBinding($type, $name = null)
      {
          $binding = $this->findBinding($type, $name);
          if (null === $binding) {
              throw new BindingException('No binding for ' . $type . ' defined');
          }
  
          return $binding;
      }
docs: gets a binding
  
  @param   string  $type
  @param   string  $name
  @return  \stubbles\ioc\binding\Binding
  @throws  \stubbles\ioc\binding\BindingException