Go\Instrument\Transformer\FilterInjectorTransformer::configure PHP Method

configure() protected static method

Static configurator for filter
protected static configure ( AspectKernel $kernel, string $filterName, CachePathManager $cacheManager )
$kernel Go\Core\AspectKernel Kernel to use for configuration
$filterName string Name of the filter to inject
$cacheManager Go\Instrument\ClassLoading\CachePathManager Cache manager
    protected static function configure(AspectKernel $kernel, $filterName, CachePathManager $cacheManager)
    {
        if (self::$kernel) {
            throw new \RuntimeException("Filter injector can be configured only once.");
        }
        self::$kernel = $kernel;
        self::$options = $kernel->getOptions();
        self::$filterName = $filterName;
        self::$cachePathManager = $cacheManager;
    }