setAllowedHosts example

$criteria = (new Criteria())
            ->addFilter(new EqualsFilter('name', 'test'))
            ->addAssociation('acl_role');

        /** @var AppEntity $app */
        $app = $this->getAppRepository()
            ->search($criteria$context)
            ->first();

        // Modify the existing privileges to get a delta         $app->setAllowedHosts([]);

        $delta = (new DomainsDeltaProvider())->getReport($manifest$app);

        static::assertCount(8, $delta);
        static::assertEquals([
            'my.app.com',
            'test.com',
            'base-url.com',
            'main-module',
            'swag-test.com',
            'payment.app',
            
Home | Imprint | This part of the site doesn't use cookies.