@@ -49,7 +49,7 @@ |
||
| 49 | 49 | { |
| 50 | 50 | $this->assertNavigationTreeForUpdate($navigationTreeTransfer); |
| 51 | 51 | |
| 52 | - $this->handleDatabaseTransaction(function () use ($navigationTreeTransfer) { |
|
| 52 | + $this->handleDatabaseTransaction(function() use ($navigationTreeTransfer) { |
|
| 53 | 53 | $this->executeUpdateNavigationTreeHierarchyTransaction($navigationTreeTransfer); |
| 54 | 54 | }); |
| 55 | 55 | } |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | { |
| 49 | 49 | $this->assertNavigationNodeForCreation($navigationNodeTransfer); |
| 50 | 50 | |
| 51 | - return $this->handleDatabaseTransaction(function () use ($navigationNodeTransfer) { |
|
| 51 | + return $this->handleDatabaseTransaction(function() use ($navigationNodeTransfer) { |
|
| 52 | 52 | return $this->executeCreateNavigationNodeTransaction($navigationNodeTransfer); |
| 53 | 53 | }); |
| 54 | 54 | } |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | { |
| 48 | 48 | $this->assertNavigationNodeForDelete($navigationNodeTransfer); |
| 49 | 49 | |
| 50 | - $this->handleDatabaseTransaction(function () use ($navigationNodeTransfer) { |
|
| 50 | + $this->handleDatabaseTransaction(function() use ($navigationNodeTransfer) { |
|
| 51 | 51 | $this->executeDeleteNavigationNodeTransaction($navigationNodeTransfer); |
| 52 | 52 | }); |
| 53 | 53 | } |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | { |
| 51 | 51 | $this->assertNavigationNodeForUpdate($navigationNodeTransfer); |
| 52 | 52 | |
| 53 | - return $this->handleDatabaseTransaction(function () use ($navigationNodeTransfer) { |
|
| 53 | + return $this->handleDatabaseTransaction(function() use ($navigationNodeTransfer) { |
|
| 54 | 54 | return $this->executeUpdateNavigationNodeTransaction($navigationNodeTransfer); |
| 55 | 55 | }); |
| 56 | 56 | } |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | { |
| 50 | 50 | $this->assertUrlForDetach($urlTransfer); |
| 51 | 51 | |
| 52 | - $this->handleDatabaseTransaction(function () use ($urlTransfer) { |
|
| 52 | + $this->handleDatabaseTransaction(function() use ($urlTransfer) { |
|
| 53 | 53 | $this->executeDetachUrlFromNavigationNodesTransaction($urlTransfer); |
| 54 | 54 | }); |
| 55 | 55 | } |
@@ -49,67 +49,67 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | public function provideBusinessLayerDependencies(Container $container) |
| 51 | 51 | { |
| 52 | - $container[self::FACADE_LOCALE] = function (Container $container) { |
|
| 52 | + $container[self::FACADE_LOCALE] = function(Container $container) { |
|
| 53 | 53 | return new ProductToLocaleBridge($container->getLocator()->locale()->facade()); |
| 54 | 54 | }; |
| 55 | 55 | |
| 56 | - $container[self::FACADE_URL] = function (Container $container) { |
|
| 56 | + $container[self::FACADE_URL] = function(Container $container) { |
|
| 57 | 57 | return new ProductToUrlBridge($container->getLocator()->url()->facade()); |
| 58 | 58 | }; |
| 59 | 59 | |
| 60 | - $container[self::FACADE_TOUCH] = function (Container $container) { |
|
| 60 | + $container[self::FACADE_TOUCH] = function(Container $container) { |
|
| 61 | 61 | return new ProductToTouchBridge($container->getLocator()->touch()->facade()); |
| 62 | 62 | }; |
| 63 | 63 | |
| 64 | - $container[self::SERVICE_UTIL_TEXT] = function (Container $container) { |
|
| 64 | + $container[self::SERVICE_UTIL_TEXT] = function(Container $container) { |
|
| 65 | 65 | return new ProductToUtilTextBridge($container->getLocator()->utilText()->service()); |
| 66 | 66 | }; |
| 67 | 67 | |
| 68 | - $container[self::SERVICE_UTIL_ENCODING] = function (Container $container) { |
|
| 68 | + $container[self::SERVICE_UTIL_ENCODING] = function(Container $container) { |
|
| 69 | 69 | return new ProductToUtilEncodingBridge($container->getLocator()->utilEncoding()->service()); |
| 70 | 70 | }; |
| 71 | 71 | |
| 72 | - $container[self::FACADE_EVENT] = function (Container $container) { |
|
| 72 | + $container[self::FACADE_EVENT] = function(Container $container) { |
|
| 73 | 73 | return new ProductToEventBridge($container->getLocator()->event()->facade()); |
| 74 | 74 | }; |
| 75 | 75 | |
| 76 | - $container[self::PRODUCT_ABSTRACT_PLUGINS_BEFORE_CREATE] = function (Container $container) { |
|
| 76 | + $container[self::PRODUCT_ABSTRACT_PLUGINS_BEFORE_CREATE] = function(Container $container) { |
|
| 77 | 77 | return $this->getProductAbstractBeforeCreatePlugins($container); |
| 78 | 78 | }; |
| 79 | 79 | |
| 80 | - $container[self::PRODUCT_ABSTRACT_PLUGINS_AFTER_CREATE] = function (Container $container) { |
|
| 80 | + $container[self::PRODUCT_ABSTRACT_PLUGINS_AFTER_CREATE] = function(Container $container) { |
|
| 81 | 81 | return $this->getProductAbstractAfterCreatePlugins($container); |
| 82 | 82 | }; |
| 83 | 83 | |
| 84 | - $container[self::PRODUCT_ABSTRACT_PLUGINS_READ] = function (Container $container) { |
|
| 84 | + $container[self::PRODUCT_ABSTRACT_PLUGINS_READ] = function(Container $container) { |
|
| 85 | 85 | return $this->getProductAbstractReadPlugins($container); |
| 86 | 86 | }; |
| 87 | 87 | |
| 88 | - $container[self::PRODUCT_ABSTRACT_PLUGINS_BEFORE_UPDATE] = function (Container $container) { |
|
| 88 | + $container[self::PRODUCT_ABSTRACT_PLUGINS_BEFORE_UPDATE] = function(Container $container) { |
|
| 89 | 89 | return $this->getProductAbstractBeforeUpdatePlugins($container); |
| 90 | 90 | }; |
| 91 | 91 | |
| 92 | - $container[self::PRODUCT_ABSTRACT_PLUGINS_AFTER_UPDATE] = function (Container $container) { |
|
| 92 | + $container[self::PRODUCT_ABSTRACT_PLUGINS_AFTER_UPDATE] = function(Container $container) { |
|
| 93 | 93 | return $this->getProductAbstractAfterUpdatePlugins($container); |
| 94 | 94 | }; |
| 95 | 95 | |
| 96 | - $container[self::PRODUCT_CONCRETE_PLUGINS_BEFORE_CREATE] = function (Container $container) { |
|
| 96 | + $container[self::PRODUCT_CONCRETE_PLUGINS_BEFORE_CREATE] = function(Container $container) { |
|
| 97 | 97 | return $this->getProductConcreteBeforeCreatePlugins($container); |
| 98 | 98 | }; |
| 99 | 99 | |
| 100 | - $container[self::PRODUCT_CONCRETE_PLUGINS_AFTER_CREATE] = function (Container $container) { |
|
| 100 | + $container[self::PRODUCT_CONCRETE_PLUGINS_AFTER_CREATE] = function(Container $container) { |
|
| 101 | 101 | return $this->getProductConcreteAfterCreatePlugins($container); |
| 102 | 102 | }; |
| 103 | 103 | |
| 104 | - $container[self::PRODUCT_CONCRETE_PLUGINS_READ] = function (Container $container) { |
|
| 104 | + $container[self::PRODUCT_CONCRETE_PLUGINS_READ] = function(Container $container) { |
|
| 105 | 105 | return $this->getProductConcreteReadPlugins($container); |
| 106 | 106 | }; |
| 107 | 107 | |
| 108 | - $container[self::PRODUCT_CONCRETE_PLUGINS_BEFORE_UPDATE] = function (Container $container) { |
|
| 108 | + $container[self::PRODUCT_CONCRETE_PLUGINS_BEFORE_UPDATE] = function(Container $container) { |
|
| 109 | 109 | return $this->getProductConcreteBeforeUpdatePlugins($container); |
| 110 | 110 | }; |
| 111 | 111 | |
| 112 | - $container[self::PRODUCT_CONCRETE_PLUGINS_AFTER_UPDATE] = function (Container $container) { |
|
| 112 | + $container[self::PRODUCT_CONCRETE_PLUGINS_AFTER_UPDATE] = function(Container $container) { |
|
| 113 | 113 | return $this->getProductConcreteAfterUpdatePlugins($container); |
| 114 | 114 | }; |
| 115 | 115 | |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | */ |
| 134 | 134 | public function providePersistenceLayerDependencies(Container $container) |
| 135 | 135 | { |
| 136 | - $container[self::QUERY_CONTAINER_URL] = function (Container $container) { |
|
| 136 | + $container[self::QUERY_CONTAINER_URL] = function(Container $container) { |
|
| 137 | 137 | return new ProductToUrlQueryContainerBridge($container->getLocator()->url()->queryContainer()); |
| 138 | 138 | }; |
| 139 | 139 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | ); |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | - $this->handleDatabaseTransaction(function () use ($productRelationEntity) { |
|
| 64 | + $this->handleDatabaseTransaction(function() use ($productRelationEntity) { |
|
| 65 | 65 | $this->executeActivateRelationTransaction($productRelationEntity); |
| 66 | 66 | }); |
| 67 | 67 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | ); |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | - $this->handleDatabaseTransaction(function () use ($productRelationEntity) { |
|
| 102 | + $this->handleDatabaseTransaction(function() use ($productRelationEntity) { |
|
| 103 | 103 | $this->executeDeactivateRelationTransaction($productRelationEntity); |
| 104 | 104 | }); |
| 105 | 105 | } |
@@ -35,19 +35,19 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | public function provideBusinessLayerDependencies(Container $container) |
| 37 | 37 | { |
| 38 | - $container[self::FACADE_LOCALE] = function (Container $container) { |
|
| 38 | + $container[self::FACADE_LOCALE] = function(Container $container) { |
|
| 39 | 39 | return new ProductCategoryToLocaleBridge($container->getLocator()->locale()->facade()); |
| 40 | 40 | }; |
| 41 | 41 | |
| 42 | - $container[self::FACADE_PRODUCT] = function (Container $container) { |
|
| 42 | + $container[self::FACADE_PRODUCT] = function(Container $container) { |
|
| 43 | 43 | return new ProductCategoryToProductBridge($container->getLocator()->product()->facade()); |
| 44 | 44 | }; |
| 45 | 45 | |
| 46 | - $container[self::FACADE_CATEGORY] = function (Container $container) { |
|
| 46 | + $container[self::FACADE_CATEGORY] = function(Container $container) { |
|
| 47 | 47 | return new ProductCategoryToCategoryBridge($container->getLocator()->category()->facade()); |
| 48 | 48 | }; |
| 49 | 49 | |
| 50 | - $container[self::FACADE_EVENT] = function (Container $container) { |
|
| 50 | + $container[self::FACADE_EVENT] = function(Container $container) { |
|
| 51 | 51 | return new ProductCategoryToEventBridge($container->getLocator()->event()->facade()); |
| 52 | 52 | }; |
| 53 | 53 | |
@@ -61,15 +61,15 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public function provideCommunicationLayerDependencies(Container $container) |
| 63 | 63 | { |
| 64 | - $container[self::FACADE_LOCALE] = function (Container $container) { |
|
| 64 | + $container[self::FACADE_LOCALE] = function(Container $container) { |
|
| 65 | 65 | return new ProductCategoryToLocaleBridge($container->getLocator()->locale()->facade()); |
| 66 | 66 | }; |
| 67 | 67 | |
| 68 | - $container[self::CATEGORY_QUERY_CONTAINER] = function (Container $container) { |
|
| 68 | + $container[self::CATEGORY_QUERY_CONTAINER] = function(Container $container) { |
|
| 69 | 69 | return new ProductCategoryToCategoryQueryContainerBridge($container->getLocator()->category()->queryContainer()); |
| 70 | 70 | }; |
| 71 | 71 | |
| 72 | - $container[self::SERVICE_UTIL_ENCODING] = function (Container $container) { |
|
| 72 | + $container[self::SERVICE_UTIL_ENCODING] = function(Container $container) { |
|
| 73 | 73 | return new ProductCategoryToUtilEncodingBridge($container->getLocator()->utilEncoding()->service()); |
| 74 | 74 | }; |
| 75 | 75 | |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | $twigExtension = $this->getFactory()->createNavigationTwigExtension(); |
| 28 | 28 | |
| 29 | 29 | $app['twig'] = $app->share( |
| 30 | - $app->extend('twig', function (\Twig_Environment $twig) use ($twigExtension) { |
|
| 30 | + $app->extend('twig', function(\Twig_Environment $twig) use ($twigExtension) { |
|
| 31 | 31 | $twig->addExtension($twigExtension); |
| 32 | 32 | |
| 33 | 33 | return $twig; |