public function __construct(string $config) { $this->path = self::socketPath($config); $this->writer = (new \ReflectionClass($this))->getMethod("writer")->getClosure($this); }