sylius

Access currently logged in user in UserRepository in Sylius

六眼飞鱼酱① 提交于 2021-02-08 07:04:52
问题 I would like to do something like this. sylius_backend_user_index: pattern: / methods: [GET] defaults: _controller: sylius.controller.user:indexAction _sylius: template: SyliusWebBundle:Backend/User:index.html.twig method: createFilterPaginator arguments: [$criteria, $sorting, $deleted, @service_container] I would like to access service_container in createFilterPaginator method. Can any one help me to sort out this issue? 回答1: First of all, no need for the whole service container, you need

Access currently logged in user in UserRepository in Sylius

醉酒当歌 提交于 2021-02-08 07:01:29
问题 I would like to do something like this. sylius_backend_user_index: pattern: / methods: [GET] defaults: _controller: sylius.controller.user:indexAction _sylius: template: SyliusWebBundle:Backend/User:index.html.twig method: createFilterPaginator arguments: [$criteria, $sorting, $deleted, @service_container] I would like to access service_container in createFilterPaginator method. Can any one help me to sort out this issue? 回答1: First of all, no need for the whole service container, you need

Yarn install command error No such file or directory: 'install'

落花浮王杯 提交于 2021-01-20 14:10:18
问题 I am installing sylius bundle and while install sylius I need to run yarn install So While i run command yarn install I get error: ERROR: [Errno 2] No such file or directory: 'install' 回答1: I had the same issue on Ubuntu 17.04. This solution worked for me: sudo apt remove cmdtest sudo apt remove yarn curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update sudo

Yarn install command error No such file or directory: 'install'

笑着哭i 提交于 2021-01-20 14:08:40
问题 I am installing sylius bundle and while install sylius I need to run yarn install So While i run command yarn install I get error: ERROR: [Errno 2] No such file or directory: 'install' 回答1: I had the same issue on Ubuntu 17.04. This solution worked for me: sudo apt remove cmdtest sudo apt remove yarn curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update sudo

Yarn install command error No such file or directory: 'install'

给你一囗甜甜゛ 提交于 2021-01-20 14:08:32
问题 I am installing sylius bundle and while install sylius I need to run yarn install So While i run command yarn install I get error: ERROR: [Errno 2] No such file or directory: 'install' 回答1: I had the same issue on Ubuntu 17.04. This solution worked for me: sudo apt remove cmdtest sudo apt remove yarn curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update sudo

Allowed memory size of # bytes exhausted when deploying Sylius application on Heroku

痞子三分冷 提交于 2020-07-10 07:29:06
问题 I am trying to deploy a Sylius app to Heroku. While doing the build process fails with following error: ... remote: - Installing doctrine/doctrine-migrations-bundle (2.1.2): Loading from cache remote: - Installing doctrine/doctrine-fixtures-bundle (v2.4.1): Loading from cache remote: - Installing sylius/sylius (v1.6.4): Loading from cache remote: - Installing symfony/dotenv (v4.4.1): Loading from cache remote: Generating optimized autoload files remote: ocramius/package-versions: Generating

Sylius: How to reference your own twig template in a grid?

早过忘川 提交于 2020-01-25 06:48:09
问题 This is not a duplicate of e.g. Referencing a template in Twig / Symfony2 because creating bundles as applications is deprecated/not recommended anymore and therefore the answer is not applicable anymore. How do I reference my own template in a Sylius grid? What I tried: 1. options: template: "@App/Order/Grid/Field/channel.html.twig" 2. options: template: ":Order/Grid/Field:channel.html.twig" 3. options: template: "templates/Order/Grid/Field/channel.html.twig" 4. options: template: "Order

Override CoreBundle/Model/Product

烂漫一生 提交于 2020-01-17 01:15:40
问题 I'm struggling to override the Product an I'm not sure if it is a bug or not. The overriding is working correctly but when I'm going to create a new Product in the Sylius Backend I'm getting following Exception: An exception occurred while executing 'INSERT INTO sylius_variant (is_master, presentation, available_on, created_at, updated_at, deleted_at, sku, price, on_hold, on_hand, available_on_demand, width, height, depth, weight, product_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,