file = $file; } /** * * Invokes the closure to require the file. * * @return mixed The return from the required file, if any. * */ public function __invoke() { $filename = $this->file; if ($filename instanceof LazyInterface) { $filename = $filename->__invoke(); } return require $filename; } }