src/Command/PbjxAwareCommandTrait.php
protected function createConsoleRequest(): Request
    {
        $requestStack = $this->getRequestStack();
        $request = $requestStack->getCurrentRequest();
        if (!$request instanceof Request) {
            $request = new Request();
            $requestStack->push($request);
        }

        $request->attributes->set('pbjx_console', true);
        $request->attributes->set('pbjx_bind_unrestricted', true);

        return $request;
    }
protected function createConsoleRequest(): Request
    {
        $requestStack = $this->getRequestStack();
        $request = $requestStack->getCurrentRequest();
        if (!$request instanceof Request) {
            $request = new Request();
            $requestStack->push($request);
        }

        $request->attributes->set('pbjx_console', true);
        $request->attributes->set('pbjx_bind_unrestricted', true);

        return $request;
    }
protected function createConsoleRequest ( ) : Request { $ requestStack = $ this -> getRequestStack ( ) ; $ request = $ requestStack -> getCurrentRequest ( ) ; if ( ! $ request instanceof Request ) { $ request = new Request ( ) ; $ requestStack -> push ( $ request ) ; } $ request -> attributes -> set ( 'pbjx_console' , true ) ; $ request -> attributes -> set ( 'pbjx_bind_unrestricted' , true ) ; return $ request ; }
Some pbjx binders, validators, etc. expect a request to exist.
Create one if nothing has been created yet.

@return Request
Some pbjx binders validators etc . expect a request to exist . Create one if nothing has been created yet .