Kraken\Util\Factory\FactoryInterface::define PHP Method

define() public method

Define factory method for some object and register in under $name key.
public define ( string $name, callable $factoryMethod ) : Kraken\Util\Factory\FactoryInterface
$name string
$factoryMethod callable
return Kraken\Util\Factory\FactoryInterface
    public function define($name, callable $factoryMethod);