classes/Container.php
public function define($class, $factory, array $params = array())
	{
		if ($params) {
			$this->params($class, $params);
		}

		if (!$factory instanceof FactoryInterface) {
			$factory = Definition::getDefaultForCallable($factory);
		}

		return $this->factories[$class] = $factory;
	}
public function define($class, $factory, array $params = array())
	{
		if ($params) {
			$this->params($class, $params);
		}

		if (!$factory instanceof FactoryInterface) {
			$factory = Definition::getDefaultForCallable($factory);
		}

		return $this->factories[$class] = $factory;
	}
{@inheritdoc}