@@ -64,12 +64,12 @@ discard block |
||
64 | 64 | |
65 | 65 | // SSL強制時は, httpsのみにアクセス制限する |
66 | 66 | $accessControl = [ |
67 | - ['path' => '^/%eccube_admin_route%/login', 'roles' => 'IS_AUTHENTICATED_ANONYMOUSLY'], |
|
68 | - ['path' => '^/%eccube_admin_route%/', 'roles' => 'ROLE_ADMIN'], |
|
69 | - ['path' => '^/mypage/login', 'roles' => 'IS_AUTHENTICATED_ANONYMOUSLY'], |
|
70 | - ['path' => '^/mypage/withdraw_complete', 'roles' => 'IS_AUTHENTICATED_ANONYMOUSLY'], |
|
71 | - ['path' => '^/mypage/change', 'roles' => 'IS_AUTHENTICATED_FULLY'], |
|
72 | - ['path' => '^/mypage/', 'roles' => 'ROLE_USER'], |
|
67 | + ['path' => '^/%eccube_admin_route%/login', 'roles' => 'IS_AUTHENTICATED_ANONYMOUSLY'], |
|
68 | + ['path' => '^/%eccube_admin_route%/', 'roles' => 'ROLE_ADMIN'], |
|
69 | + ['path' => '^/mypage/login', 'roles' => 'IS_AUTHENTICATED_ANONYMOUSLY'], |
|
70 | + ['path' => '^/mypage/withdraw_complete', 'roles' => 'IS_AUTHENTICATED_ANONYMOUSLY'], |
|
71 | + ['path' => '^/mypage/change', 'roles' => 'IS_AUTHENTICATED_FULLY'], |
|
72 | + ['path' => '^/mypage/', 'roles' => 'ROLE_USER'], |
|
73 | 73 | ]; |
74 | 74 | if ($forceSSL) { |
75 | 75 | foreach ($accessControl as &$control) { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | // security.ymlでは制御できないため, ここで定義する. |
81 | 81 | $container->prependExtensionConfig('security', [ |
82 | - 'access_control' => $accessControl, |
|
82 | + 'access_control' => $accessControl, |
|
83 | 83 | ]); |
84 | 84 | } |
85 | 85 |
@@ -126,14 +126,14 @@ |
||
126 | 126 | setcookie($this->sessionName, '', 0, ini_get('session.cookie_path'), ini_get('session.cookie_domain'), filter_var(ini_get('session.cookie_secure'), FILTER_VALIDATE_BOOLEAN), filter_var(ini_get('session.cookie_httponly'), FILTER_VALIDATE_BOOLEAN)); |
127 | 127 | } else { |
128 | 128 | setcookie($this->sessionName, '', |
129 | - [ |
|
130 | - 'expires' => 0, |
|
131 | - 'path' => $this->getCookiePath(), |
|
132 | - 'domain' => ini_get('session.cookie_domain'), |
|
133 | - 'secure' => filter_var(ini_get('session.cookie_secure'), FILTER_VALIDATE_BOOLEAN), |
|
134 | - 'httponly' => filter_var(ini_get('session.cookie_httponly'), FILTER_VALIDATE_BOOLEAN), |
|
135 | - 'samesite' => $this->getCookieSameSite(), |
|
136 | - ] |
|
129 | + [ |
|
130 | + 'expires' => 0, |
|
131 | + 'path' => $this->getCookiePath(), |
|
132 | + 'domain' => ini_get('session.cookie_domain'), |
|
133 | + 'secure' => filter_var(ini_get('session.cookie_secure'), FILTER_VALIDATE_BOOLEAN), |
|
134 | + 'httponly' => filter_var(ini_get('session.cookie_httponly'), FILTER_VALIDATE_BOOLEAN), |
|
135 | + 'samesite' => $this->getCookieSameSite(), |
|
136 | + ] |
|
137 | 137 | ); |
138 | 138 | } |
139 | 139 | } |
@@ -274,22 +274,22 @@ |
||
274 | 274 | ]; |
275 | 275 | if($class_category_id2) |
276 | 276 | { |
277 | - $class_categories[$class_category_id1]['#'.$class_category_id2] = [ |
|
278 | - 'classcategory_id2' => $class_category_id2, |
|
279 | - 'name' => $class_category_name2, |
|
280 | - 'stock_find' => $ProductClass->getStockFind(), |
|
281 | - 'price01' => $ProductClass->getPrice01() === null ? '' : number_format($ProductClass->getPrice01()), |
|
282 | - 'price02' => number_format($ProductClass->getPrice02()), |
|
283 | - 'price01_inc_tax' => $ProductClass->getPrice01() === null ? '' : number_format($ProductClass->getPrice01IncTax()), |
|
284 | - 'price02_inc_tax' => number_format($ProductClass->getPrice02IncTax()), |
|
285 | - 'price01_with_currency' => $ProductClass->getPrice01() === null ? '' : $this->getPriceFilter($ProductClass->getPrice01()), |
|
286 | - 'price02_with_currency' => $this->getPriceFilter($ProductClass->getPrice02()), |
|
287 | - 'price01_inc_tax_with_currency' => $ProductClass->getPrice01() === null ? '' : $this->getPriceFilter($ProductClass->getPrice01IncTax()), |
|
288 | - 'price02_inc_tax_with_currency' => $this->getPriceFilter($ProductClass->getPrice02IncTax()), |
|
289 | - 'product_class_id' => (string) $ProductClass->getId(), |
|
290 | - 'product_code' => $ProductClass->getCode() === null ? '' : $ProductClass->getCode(), |
|
291 | - 'sale_type' => (string) $ProductClass->getSaleType()->getId(), |
|
292 | - ]; |
|
277 | + $class_categories[$class_category_id1]['#'.$class_category_id2] = [ |
|
278 | + 'classcategory_id2' => $class_category_id2, |
|
279 | + 'name' => $class_category_name2, |
|
280 | + 'stock_find' => $ProductClass->getStockFind(), |
|
281 | + 'price01' => $ProductClass->getPrice01() === null ? '' : number_format($ProductClass->getPrice01()), |
|
282 | + 'price02' => number_format($ProductClass->getPrice02()), |
|
283 | + 'price01_inc_tax' => $ProductClass->getPrice01() === null ? '' : number_format($ProductClass->getPrice01IncTax()), |
|
284 | + 'price02_inc_tax' => number_format($ProductClass->getPrice02IncTax()), |
|
285 | + 'price01_with_currency' => $ProductClass->getPrice01() === null ? '' : $this->getPriceFilter($ProductClass->getPrice01()), |
|
286 | + 'price02_with_currency' => $this->getPriceFilter($ProductClass->getPrice02()), |
|
287 | + 'price01_inc_tax_with_currency' => $ProductClass->getPrice01() === null ? '' : $this->getPriceFilter($ProductClass->getPrice01IncTax()), |
|
288 | + 'price02_inc_tax_with_currency' => $this->getPriceFilter($ProductClass->getPrice02IncTax()), |
|
289 | + 'product_class_id' => (string) $ProductClass->getId(), |
|
290 | + 'product_code' => $ProductClass->getCode() === null ? '' : $ProductClass->getCode(), |
|
291 | + 'sale_type' => (string) $ProductClass->getSaleType()->getId(), |
|
292 | + ]; |
|
293 | 293 | } |
294 | 294 | } |
295 | 295 |