@@ -33,22 +33,22 @@ |
||
33 | 33 | |
34 | 34 | $rootNode |
35 | 35 | ->children() |
36 | - ->booleanNode('disable_sites')->defaultValue( true )->end() |
|
37 | - ->booleanNode('apc_enable')->defaultValue( false )->end() |
|
38 | - ->scalarNode('apc_prefix')->defaultValue( 'sf2:' )->end() |
|
39 | - ->scalarNode('extdir')->end() |
|
40 | - ->scalarNode('uploaddir')->end() |
|
41 | - ->variableNode('admin')->defaultValue( array() )->end() |
|
42 | - ->variableNode('client')->defaultValue( array() )->end() |
|
43 | - ->variableNode('controller')->defaultValue( array() )->end() |
|
44 | - ->variableNode('i18n')->defaultValue( array() )->end() |
|
45 | - ->variableNode('madmin')->defaultValue( array() )->end() |
|
46 | - ->variableNode('mshop')->defaultValue( array() )->end() |
|
47 | - ->variableNode('resource')->defaultValue( array() )->end() |
|
48 | - ->variableNode('page')->defaultValue( array() )->end() |
|
49 | - ->variableNode('backend')->defaultValue( array() )->end() |
|
50 | - ->variableNode('frontend')->defaultValue( array() )->end() |
|
51 | - ->variableNode('command')->defaultValue( array() )->end() |
|
36 | + ->booleanNode( 'disable_sites' )->defaultValue( true )->end() |
|
37 | + ->booleanNode( 'apc_enable' )->defaultValue( false )->end() |
|
38 | + ->scalarNode( 'apc_prefix' )->defaultValue( 'sf2:' )->end() |
|
39 | + ->scalarNode( 'extdir' )->end() |
|
40 | + ->scalarNode( 'uploaddir' )->end() |
|
41 | + ->variableNode( 'admin' )->defaultValue( array() )->end() |
|
42 | + ->variableNode( 'client' )->defaultValue( array() )->end() |
|
43 | + ->variableNode( 'controller' )->defaultValue( array() )->end() |
|
44 | + ->variableNode( 'i18n' )->defaultValue( array() )->end() |
|
45 | + ->variableNode( 'madmin' )->defaultValue( array() )->end() |
|
46 | + ->variableNode( 'mshop' )->defaultValue( array() )->end() |
|
47 | + ->variableNode( 'resource' )->defaultValue( array() )->end() |
|
48 | + ->variableNode( 'page' )->defaultValue( array() )->end() |
|
49 | + ->variableNode( 'backend' )->defaultValue( array() )->end() |
|
50 | + ->variableNode( 'frontend' )->defaultValue( array() )->end() |
|
51 | + ->variableNode( 'command' )->defaultValue( array() )->end() |
|
52 | 52 | ->end() |
53 | 53 | ; |
54 | 54 |
@@ -127,10 +127,10 @@ |
||
127 | 127 | $templatePaths = $aimeos->getCustomPaths( 'admin/jsonadm/templates' ); |
128 | 128 | |
129 | 129 | $context = $this->get( 'aimeos.context' )->get( false, 'backend' ); |
130 | - $context->setI18n( $this->get('aimeos.i18n')->get( array( $lang, 'en' ) ) ); |
|
131 | - $context->setLocale( $this->get('aimeos.locale')->getBackend( $context, $site ) ); |
|
130 | + $context->setI18n( $this->get( 'aimeos.i18n' )->get( array( $lang, 'en' ) ) ); |
|
131 | + $context->setLocale( $this->get( 'aimeos.locale' )->getBackend( $context, $site ) ); |
|
132 | 132 | |
133 | - $view = $this->get('aimeos.view')->create( $context, $templatePaths, $lang ); |
|
133 | + $view = $this->get( 'aimeos.view' )->create( $context, $templatePaths, $lang ); |
|
134 | 134 | $context->setView( $view ); |
135 | 135 | |
136 | 136 | return \Aimeos\Admin\JsonAdm::create( $context, $aimeos, $resource ); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | $response = $this->render( '@AimeosShop/Checkout/confirm.html.twig', $params ); |
42 | - $response->headers->set('Cache-Control', 'no-store'); |
|
42 | + $response->headers->set( 'Cache-Control', 'no-store' ); |
|
43 | 43 | return $response; |
44 | 44 | } |
45 | 45 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | $response = $this->render( '@AimeosShop/Checkout/index.html.twig', $params ); |
64 | - $response->headers->set('Cache-Control', 'no-store'); |
|
64 | + $response->headers->set( 'Cache-Control', 'no-store' ); |
|
65 | 65 | return $response; |
66 | 66 | } |
67 | 67 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | } |
84 | 84 | |
85 | 85 | $response = $this->render( '@AimeosShop/Checkout/update.html.twig', $params ); |
86 | - $response->headers->set('Cache-Control', 'no-store'); |
|
86 | + $response->headers->set( 'Cache-Control', 'no-store' ); |
|
87 | 87 | return $response; |
88 | 88 | } |
89 | 89 | |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $this->container->get( 'twig' )->addGlobal( 'aiheader', (string) $client->getHeader() ); |
100 | 100 | |
101 | 101 | $response = new Response( (string) $client->getBody() ); |
102 | - $response->headers->set('Cache-Control', 'no-store'); |
|
102 | + $response->headers->set( 'Cache-Control', 'no-store' ); |
|
103 | 103 | return $response; |
104 | 104 | } |
105 | 105 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | $this->container->get( 'twig' )->addGlobal( 'aiheader', (string) $client->getHeader() ); |
116 | 116 | |
117 | 117 | $response = new Response( (string) $client->getBody() ); |
118 | - $response->headers->set('Cache-Control', 'no-store'); |
|
118 | + $response->headers->set( 'Cache-Control', 'no-store' ); |
|
119 | 119 | return $response; |
120 | 120 | } |
121 | 121 | |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $this->container->get( 'twig' )->addGlobal( 'aiheader', (string) $client->getHeader() ); |
132 | 132 | |
133 | 133 | $response = new Response( (string) $client->getBody() ); |
134 | - $response->headers->set('Cache-Control', 'no-store'); |
|
134 | + $response->headers->set( 'Cache-Control', 'no-store' ); |
|
135 | 135 | return $response; |
136 | 136 | } |
137 | 137 | } |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | $params['aibody'][$name] = $shop->get( $name )->getBody(); |
39 | 39 | } |
40 | 40 | |
41 | - $response = $this->render( '@AimeosShop/Basket/index.html.twig', $params ); |
|
42 | - $response->headers->set('Cache-Control', 'no-store'); |
|
41 | + $response = $this->render( '@AimeosShop/Basket/index.html.twig', $params ); |
|
42 | + $response->headers->set( 'Cache-Control', 'no-store' ); |
|
43 | 43 | return $response; |
44 | 44 | } |
45 | 45 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $this->container->get( 'twig' )->addGlobal( 'aiheader', (string) $client->getHeader() ); |
55 | 55 | |
56 | 56 | $response = new Response( (string) $client->getBody() ); |
57 | - $response->headers->set('Cache-Control', 'no-store'); |
|
57 | + $response->headers->set( 'Cache-Control', 'no-store' ); |
|
58 | 58 | return $response; |
59 | 59 | } |
60 | 60 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $this->container->get( 'twig' )->addGlobal( 'aiheader', (string) $client->getHeader() ); |
71 | 71 | |
72 | 72 | $response = new Response( (string) $client->getBody() ); |
73 | - $response->headers->set('Cache-Control', 'no-store'); |
|
73 | + $response->headers->set( 'Cache-Control', 'no-store' ); |
|
74 | 74 | return $response; |
75 | 75 | } |
76 | 76 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $this->container->get( 'twig' )->addGlobal( 'aiheader', (string) $client->getHeader() ); |
87 | 87 | |
88 | 88 | $response = new Response( (string) $client->getBody() ); |
89 | - $response->headers->set('Cache-Control', 'no-store'); |
|
89 | + $response->headers->set( 'Cache-Control', 'no-store' ); |
|
90 | 90 | return $response; |
91 | 91 | } |
92 | 92 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $cntl = $this->createAdmin( $request, $site, $resource ); |
79 | 79 | |
80 | 80 | if( ( $html = $cntl->copy() ) == '' ) { |
81 | - return (new HttpFoundationFactory())->createResponse( $cntl->getView()->response() ); |
|
81 | + return ( new HttpFoundationFactory() )->createResponse( $cntl->getView()->response() ); |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | return $this->getHtml( $html ); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $cntl = $this->createAdmin( $request, $site, $resource ); |
99 | 99 | |
100 | 100 | if( ( $html = $cntl->create() ) == '' ) { |
101 | - return (new HttpFoundationFactory())->createResponse( $cntl->getView()->response() ); |
|
101 | + return ( new HttpFoundationFactory() )->createResponse( $cntl->getView()->response() ); |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | return $this->getHtml( $html ); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | $cntl = $this->createAdmin( $request, $site, $resource ); |
119 | 119 | |
120 | 120 | if( ( $html = $cntl->delete() ) == '' ) { |
121 | - return (new HttpFoundationFactory())->createResponse( $cntl->getView()->response() ); |
|
121 | + return ( new HttpFoundationFactory() )->createResponse( $cntl->getView()->response() ); |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | return $this->getHtml( $html ); |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | $cntl = $this->createAdmin( $request, $site, $resource ); |
139 | 139 | |
140 | 140 | if( ( $html = $cntl->export() ) == '' ) { |
141 | - return (new HttpFoundationFactory())->createResponse( $cntl->getView()->response() ); |
|
141 | + return ( new HttpFoundationFactory() )->createResponse( $cntl->getView()->response() ); |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | return $this->getHtml( $html ); |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | $cntl = $this->createAdmin( $request, $site, $resource ); |
159 | 159 | |
160 | 160 | if( ( $html = $cntl->get() ) == '' ) { |
161 | - return (new HttpFoundationFactory())->createResponse( $cntl->getView()->response() ); |
|
161 | + return ( new HttpFoundationFactory() )->createResponse( $cntl->getView()->response() ); |
|
162 | 162 | } |
163 | 163 | |
164 | 164 | return $this->getHtml( $html ); |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | $cntl = $this->createAdmin( $request, $site, $resource ); |
179 | 179 | |
180 | 180 | if( ( $html = $cntl->save() ) == '' ) { |
181 | - return (new HttpFoundationFactory())->createResponse( $cntl->getView()->response() ); |
|
181 | + return ( new HttpFoundationFactory() )->createResponse( $cntl->getView()->response() ); |
|
182 | 182 | } |
183 | 183 | |
184 | 184 | return $this->getHtml( $html ); |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | $cntl = $this->createAdmin( $request, $site, $resource ); |
199 | 199 | |
200 | 200 | if( ( $html = $cntl->search() ) == '' ) { |
201 | - return (new HttpFoundationFactory())->createResponse( $cntl->getView()->response() ); |
|
201 | + return ( new HttpFoundationFactory() )->createResponse( $cntl->getView()->response() ); |
|
202 | 202 | } |
203 | 203 | |
204 | 204 | return $this->getHtml( $html ); |
@@ -85,12 +85,12 @@ |
||
85 | 85 | protected function getContext() : \Aimeos\MShop\Context\Item\Iface |
86 | 86 | { |
87 | 87 | $container = $this->getContainer(); |
88 | - $aimeos = $container->get('aimeos')->get(); |
|
88 | + $aimeos = $container->get( 'aimeos' )->get(); |
|
89 | 89 | $context = $container->get( 'aimeos.context' )->get( false, 'command' ); |
90 | 90 | |
91 | 91 | $tmplPaths = $aimeos->getCustomPaths( 'controller/jobs/templates' ); |
92 | 92 | $tmplPaths = array_merge( $tmplPaths, $aimeos->getCustomPaths( 'client/html/templates' ) ); |
93 | - $view = $container->get('aimeos.view')->create( $context, $tmplPaths ); |
|
93 | + $view = $container->get( 'aimeos.view' )->create( $context, $tmplPaths ); |
|
94 | 94 | |
95 | 95 | $langManager = \Aimeos\MShop::create( $context, 'locale/language' ); |
96 | 96 | $langids = array_keys( $langManager->searchItems( $langManager->createSearch( true ) ) ); |
@@ -552,7 +552,7 @@ |
||
552 | 552 | */ |
553 | 553 | public function getWebsite() : string |
554 | 554 | { |
555 | - return (string) $this->website; |
|
555 | + return (string) $this->website; |
|
556 | 556 | } |
557 | 557 | |
558 | 558 |