You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,11 +69,11 @@ make ecs # Docker
69
69
70
70
## Architecture
71
71
72
-
This is the **Sylius Legacy Bridge Plugin** - a plugin for bridging legacy functionality with Sylius e-commerce. It provides a complete development environment with both traditional and Docker setups.
72
+
This is the **Sylius Legacy Shop Bridge Plugin** - a plugin for bridging legacy functionality with Sylius e-commerce. It provides a complete development environment with both traditional and Docker setups.
73
73
74
74
### Core Structure
75
-
-**Main Plugin Class**: `src/SyliusLegacyBridgePlugin.php` - Entry point using `SyliusPluginTrait`
76
-
-**DI Extension**: `src/DependencyInjection/SyliusLegacyBridgeExtension.php` - Handles service loading and Doctrine migrations
75
+
-**Main Plugin Class**: `src/SyliusLegacyShopBridgePlugin.php` - Entry point using `SyliusPluginTrait`
76
+
-**DI Extension**: `src/DependencyInjection/SyliusLegacyShopBridgeExtension.php` - Handles service loading and Doctrine migrations
77
77
-**Services**: `config/services.xml` - Service definitions with XML configuration
78
78
-**Routes**: `config/routes/` - Separate admin and shop route definitions
79
79
-**Templates**: `templates/` - Twig templates for admin and shop
**Option B: If you HAVE already any of these controllers in your project**
@@ -93,7 +93,7 @@ Add the appropriate traits to your existing controllers:
93
93
// src/Controller/OrderController.php
94
94
namespace App\Controller;
95
95
96
-
use Sylius\LegacyBridgePlugin\Controller\Trait\OrderTrait;
96
+
use Sylius\LegacyShopBridgePlugin\Controller\Trait\OrderTrait;
97
97
98
98
class OrderController extends \Sylius\Bundle\CoreBundle\Controller\OrderController
99
99
{
@@ -108,7 +108,7 @@ class OrderController extends \Sylius\Bundle\CoreBundle\Controller\OrderControll
108
108
namespace App\Controller;
109
109
110
110
use Sylius\Bundle\ResourceBundle\Controller\ResourceController;
111
-
use Sylius\LegacyBridgePlugin\Controller\Trait\OrderItemTrait;
111
+
use Sylius\LegacyShopBridgePlugin\Controller\Trait\OrderItemTrait;
112
112
113
113
class OrderItemController extends ResourceController
114
114
{
@@ -123,7 +123,7 @@ class OrderItemController extends ResourceController
123
123
namespace App\Controller;
124
124
125
125
use Sylius\Bundle\ResourceBundle\Controller\ResourceController;
126
-
use Sylius\LegacyBridgePlugin\Controller\Trait\ProvinceTrait;
126
+
use Sylius\LegacyShopBridgePlugin\Controller\Trait\ProvinceTrait;
127
127
128
128
class ProvinceController extends ResourceController
129
129
{
@@ -135,7 +135,7 @@ class ProvinceController extends ResourceController
135
135
136
136
### 4. Update UI Configuration
137
137
138
-
Replace `sylius_ui` configuration with `sylius_legacy_bridge` in your `config/packages/sylius_ui.yaml` (or wherever your UI events are configured):
138
+
Replace `sylius_ui` configuration with `sylius_legacy_shop_bridge` in your `config/packages/sylius_ui.yaml` (or wherever your UI events are configured):
**Note:** The first two lines are only needed if you have customized `SyliusShopBundle` or `SyliusUiBundle` templates in your `templates/bundles/` directory. The last two lines pointing to the plugin's templates are always required.
@@ -180,8 +180,8 @@ sylius_shop:
180
180
_locale: ^[a-z]{2}(?:_[A-Z]{2})?$
181
181
182
182
# Legacy bridge routes - must be loaded AFTER shop routes
0 commit comments