public static function create(ConfigInterface $config) { return function (callable $handler) use($config) { return new static($handler, $config); }; }