fromTechnicalName example

ExtensionNotFoundException::extensionNotFoundFromId('123')->getErrorCode()
        );
    }

    /** * @DisabledFeatures(features={"v6.6.0.0"}) */
    public function testGetStatusCode(): void
    {
        static::assertSame(
            Response::HTTP_NOT_FOUND,
            ExtensionNotFoundException::fromTechnicalName('test-app')->getStatusCode()
        );
    }

    /** * @DisabledFeatures(features={"v6.6.0.0"}) */
    public function testGetMessageFromTechnicalName(): void
    {
        static::assertSame(
            'Could not find extension with technical name "SwagPaypal".',
            ExtensionNotFoundException::fromTechnicalName('SwagPaypal')->getMessage()
        );

        return ExtensionUpdateRequiresConsentAffirmationException::fromDelta($appName$deltas);
    }

    public static function extensionNotFoundFromId(string $id): self
    {
        return ExtensionNotFoundException::fromId($id);
    }

    public static function extensionNotFoundFromTechnicalName(string $technicalName): self
    {
        return ExtensionNotFoundException::fromTechnicalName($technicalName);
    }
}
Home | Imprint | This part of the site doesn't use cookies.