/** * Configure DI container. * * This method can only be safely used when the factory is a DI container * (as the willUse method is not part of the T_Factory interface). * * @param string $class classname * @param string $alias additional alias */ function willUse($class, $alias = null) { $this->env->willUse($class, $alias); return $this; }