@@ -23,7 +23,7 @@ |
||
| 23 | 23 | public const TEMPLATE_NAME = 'template_name'; |
| 24 | 24 | |
| 25 | 25 | protected static $expectedParameters = [ |
| 26 | - self::TEMPLATE_NAME => [ |
|
| 26 | + self::TEMPLATE_NAME => [ |
|
| 27 | 27 | 'type' => 'string', |
| 28 | 28 | ], |
| 29 | 29 | ]; |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use Knp\Component\Pager\Pagination\SlidingPagination; |
| 18 | 18 | use SWP\Bundle\CoreBundle\Form\Type\ThemeInstallType; |
| 19 | 19 | use SWP\Bundle\CoreBundle\Form\Type\ThemeUploadType; |
| 20 | -use SWP\Bundle\CoreBundle\Model\Tenant; |
|
| 21 | 20 | use SWP\Bundle\CoreBundle\Model\TenantInterface; |
| 22 | 21 | use SWP\Bundle\CoreBundle\Theme\Helper\ThemeHelper; |
| 23 | 22 | use SWP\Component\Common\Response\ResponseContext; |
@@ -89,19 +89,19 @@ |
||
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | return [ |
| 92 | - 'id' => $tenant->getId(), |
|
| 93 | - 'subdomain' => $tenant->getSubdomain(), |
|
| 94 | - 'domainName' => $tenant->getDomainName(), |
|
| 95 | - 'code' => $tenantCode, |
|
| 96 | - 'name' => $tenant->getName(), |
|
| 97 | - 'ampEnabled' => $tenant->isAmpEnabled(), |
|
| 98 | - 'fbiaEnabled' => $this->settingsManager->get('fbia_enabled', ScopeContext::SCOPE_TENANT, $tenant, false), |
|
| 99 | - 'paywallEnabled' => $this->settingsManager->get('paywall_enabled', ScopeContext::SCOPE_TENANT, $tenant, false), |
|
| 100 | - '_links' => [ |
|
| 101 | - 'self' => [ |
|
| 102 | - 'href' => $this->router->generate('swp_api_core_get_tenant', ['code' => $tenantCode]), |
|
| 103 | - ], |
|
| 104 | - ], |
|
| 105 | - ]; |
|
| 92 | + 'id' => $tenant->getId(), |
|
| 93 | + 'subdomain' => $tenant->getSubdomain(), |
|
| 94 | + 'domainName' => $tenant->getDomainName(), |
|
| 95 | + 'code' => $tenantCode, |
|
| 96 | + 'name' => $tenant->getName(), |
|
| 97 | + 'ampEnabled' => $tenant->isAmpEnabled(), |
|
| 98 | + 'fbiaEnabled' => $this->settingsManager->get('fbia_enabled', ScopeContext::SCOPE_TENANT, $tenant, false), |
|
| 99 | + 'paywallEnabled' => $this->settingsManager->get('paywall_enabled', ScopeContext::SCOPE_TENANT, $tenant, false), |
|
| 100 | + '_links' => [ |
|
| 101 | + 'self' => [ |
|
| 102 | + 'href' => $this->router->generate('swp_api_core_get_tenant', ['code' => $tenantCode]), |
|
| 103 | + ], |
|
| 104 | + ], |
|
| 105 | + ]; |
|
| 106 | 106 | } |
| 107 | 107 | } |