Skip to content

Commit 12ddc9c

Browse files
p4
1 parent b068a08 commit 12ddc9c

File tree

8 files changed

+24
-59
lines changed

8 files changed

+24
-59
lines changed

Aisel/app/AppKernel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public function registerBundles()
2121
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
2222
new JMS\SerializerBundle\JMSSerializerBundle(),
2323
new FOS\RestBundle\FOSRestBundle(),
24-
new Payum\Bundle\PayumBundle\PayumBundle(),
2524
new Nelmio\CorsBundle\NelmioCorsBundle(),
2625
new cspoo\Swiftmailer\MailgunBundle\cspooSwiftmailerMailgunBundle(),
2726

Aisel/app/config/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ imports:
44
- { resource: twig.yml }
55
- { resource: configs/doctrine.yml }
66
- { resource: configs/aisel.yml }
7-
- { resource: configs/payum.yml }
87
- { resource: configs/cors.yml }
98
- { resource: configs/mailgun.yml }
109

Aisel/app/config/configs/payum.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

Aisel/app/config/routing.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
_aisel:
2-
resource: routings/aisel.yml
3-
4-
_payum:
5-
resource: routings/payum.yml
2+
resource: routings/aisel.yml

Aisel/app/config/routings/payum.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

Aisel/composer.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,21 @@
1919
},
2020
"require": {
2121
"php": ">=5.3.3",
22-
"symfony/symfony": "2.7.*",
22+
"symfony/symfony": "3.0.*",
2323

24-
"doctrine/orm": "=v2.4.2",
24+
"doctrine/orm": "=v2.5.4",
2525
"doctrine/doctrine-bundle": "~1.3",
2626
"stof/doctrine-extensions-bundle": "1.2.*@dev",
2727
"doctrine/doctrine-fixtures-bundle": "2.2.*@dev",
2828
"twig/extensions": "~1.0",
2929
"symfony/assetic-bundle": "~2.3",
3030
"symfony/swiftmailer-bundle": "~2.3",
3131
"symfony/monolog-bundle": "~2.4",
32-
"sensio/distribution-bundle": "~2.3",
32+
"sensio/distribution-bundle": "5.0.*",
3333
"sensio/framework-extra-bundle": "~3.0",
34-
"sensio/generator-bundle": "~2.3",
3534
"incenteev/composer-parameter-handler": "~2.0",
36-
"friendsofsymfony/rest-bundle": "1.4.*@dev",
37-
35+
"friendsofsymfony/rest-bundle": "~1.7.8",
3836
"jms/serializer-bundle": "1.1.0",
39-
"payum/payum-bundle": "0.15.*@dev",
40-
"payum/offline": "0.15.*",
41-
"payum/paypal-express-checkout-nvp": "0.15.*",
4237

4338
"phpunit/phpunit": "4.6.4",
4439
"nelmio/cors-bundle": "~1.4",

Aisel/frontend/web/styles/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ body #loading-bar .peg {
5656
/***********
5757
Body
5858
***********/
59+
body {
60+
overflow-y: scroll;
61+
}
62+
5963
body .website-content {
6064
color: #999;
6165
}

Aisel/src/Aisel/CartBundle/Controller/ApiCartController.php

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,9 @@ class ApiCartController extends BaseApiController
2626
*/
2727
public function cartAction()
2828
{
29-
$user = $this
30-
->get('aisel.user.manager')
31-
->getUser();
3229
$cart = $this
3330
->get('aisel.cart.manager')
34-
->getUserCart($user);
31+
->getUserCart($this->getUser());
3532

3633
return $this->filterMaxDepth($cart);
3734
}
@@ -46,13 +43,13 @@ public function cartAction()
4643
*/
4744
public function productQtyUpdateAction($productId, $qty)
4845
{
49-
$user = $this
50-
->get('aisel.user.manager')
51-
->getUser();
52-
5346
$cartItem = $this
5447
->get('aisel.cart.manager')
55-
->updateProductInCart($user, $productId, $qty);
48+
->updateProductInCart(
49+
$this->getUser(),
50+
$productId,
51+
$qty
52+
);
5653

5754
if ($cartItem) {
5855
$response =
@@ -79,19 +76,19 @@ public function productQtyUpdateAction($productId, $qty)
7976
*/
8077
public function productAddAction($productId, $qty)
8178
{
82-
$user = $this
83-
->get('aisel.user.manager')
84-
->getUser();
85-
8679
$cartItem = $this
8780
->get('aisel.cart.manager')
88-
->addProductToCart($user, $productId, $qty);
81+
->addProductToCart(
82+
$this->getUser(),
83+
$productId,
84+
$qty
85+
);
8986

9087
return array(
91-
'status' => true,
92-
'message' => 'Product was added',
93-
'cartItem' => $cartItem
94-
);
88+
'status' => true,
89+
'message' => 'Product was added',
90+
'cartItem' => $cartItem
91+
);
9592
}
9693

9794
}

0 commit comments

Comments
 (0)