public function getCacheable(): array
    {
        $this->setup(true, false);

        return [
            'services' => base64_encode(serialize(self::$services)),
            'aliases'  => self::$aliases,
            'provided' => self::$provided,
        ];
    }
public function getCacheable(): array
    {
        $this->setup(true, false);

        return [
            'services' => base64_encode(serialize(self::$services)),
            'aliases'  => self::$aliases,
            'provided' => self::$provided,
        ];
    }
public function getCacheable ( ) : array { $ this -> setup ( true , false ) ; return [ 'services' => base64_encode ( serialize ( self :: $ services ) ) , 'aliases' => self :: $ aliases , 'provided' => self :: $ provided , ] ; }
Get a cacheable representation of the service container.

@throws \Valkyrja\Container\Exceptions\InvalidContextException
@throws \Valkyrja\Container\Exceptions\EndlessContextLoopException
@throws \Valkyrja\Container\Exceptions\InvalidServiceIdException
@throws \Valkyrja\Dispatcher\Exceptions\InvalidClosureException
@throws \Valkyrja\Dispatcher\Exceptions\InvalidDispatchCapabilityException
@throws \Valkyrja\Dispatcher\Exceptions\InvalidFunctionException
@throws \Valkyrja\Dispatcher\Exceptions\InvalidMethodException
@throws \Valkyrja\Dispatcher\Exceptions\InvalidPropertyException

@return array
Get a cacheable representation of the service container .