src/PugHandlerTrait.php
public function getCompiler()
    {
        $pug = $this->getPug();

        if ($pug instanceof \Phug\Renderer) {
            $pug = clone $pug->getCompiler();
        }

        return $pug;
    }
public function getCompiler()
    {
        $pug = $this->getPug();

        if ($pug instanceof \Phug\Renderer) {
            $pug = clone $pug->getCompiler();
        }

        return $pug;
    }
Returns the object the more appropriate to compile (\Pug\Pug with version < 3), \Phug\Compilser for >= 3.

@return \Phug\CompilerInterface|Pug