public function getCompiler(ContextInterface $context): CompilerInterface
    {
        if (empty($this->compiler)) {
            throw new EngineException("No associated compiler found.");
        }

        $this->compiler->getLoader()->setContext($context);

        return $this->compiler;
    }