/**
* Adds a compiler pass.
*
* @param string $type The type of compiler pass
* @param int $priority Used to sort the passes
*
* @return $this
*/
public function addCompilerPass(CompilerPassInterface
$pass, string
$type = PassConfig::TYPE_BEFORE_OPTIMIZATION, int
$priority = 0
):
static { $this->
getCompiler()->
addPass($pass,
$type,
$priority);
$this->
addObjectResource($pass);
return $this;
} /**
* Returns the compiler pass config which can then be modified.
*/
public function getCompilerPassConfig(): PassConfig
{