protected function loadAspectKernel(InputInterface $input, OutputInterface $output): void
    {
        $loader = $input->getArgument('loader');
        $path   = stream_resolve_include_path($loader);
        if (!is_readable($path)) {
            throw new InvalidArgumentException("Invalid loader path: {$loader}");
        }

        ob_start();
        include_once $path;
        ob_clean();

        if (!class_exists(AspectKernel::class, false)) {
            $message = "Kernel was not initialized yet, please configure it in the {$path}";
            throw new InvalidArgumentException($message);
        }

        $this->aspectKernel = AspectKernel::getInstance();
    }
protected function loadAspectKernel(InputInterface $input, OutputInterface $output): void
    {
        $loader = $input->getArgument('loader');
        $path   = stream_resolve_include_path($loader);
        if (!is_readable($path)) {
            throw new InvalidArgumentException("Invalid loader path: {$loader}");
        }

        ob_start();
        include_once $path;
        ob_clean();

        if (!class_exists(AspectKernel::class, false)) {
            $message = "Kernel was not initialized yet, please configure it in the {$path}";
            throw new InvalidArgumentException($message);
        }

        $this->aspectKernel = AspectKernel::getInstance();
    }
protected function loadAspectKernel ( InputInterface $ input , OutputInterface $ output ) : void { $ loader = $ input -> getArgument ( 'loader' ) ; $ path = stream_resolve_include_path ( $ loader ) ; if ( ! is_readable ( $ path ) ) { throw new InvalidArgumentException ( "Invalid loader path: {$loader}" ) ; } ob_start ( ) ; include_once $ path ; ob_clean ( ) ; if ( ! class_exists ( AspectKernel :: class , false ) ) { $ message = "Kernel was not initialized yet, please configure it in the {$path}" ; throw new InvalidArgumentException ( $ message ) ; } $ this -> aspectKernel = AspectKernel :: getInstance ( ) ; }
Loads aspect kernel.

Aspect kernel is loaded by executing loader and fetching singleton instance.
If your application environment initializes aspect kernel differently, you may
modify this method to get aspect kernel suitable to your needs.
Loads aspect kernel .