Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Store
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2016 at 10:17 UTC
Updated:
17 Oct 2017 at 10:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
bojanz commentedHere's an initial version.
Not committing it cause of reports of breakage from the Metatag module: #2810835: Installation problem PHP Fatal error: Trait 'Drupal\Console\Command\Shared\CommandTrait'.
I've also seen two bugs: the country and currency are allowed to be empty (just takes the first value from the list), and the default value for the currency is not displayed.
Comment #3
bojanz commentedDrupal Console changed their API again after this patch was written.
Comment #4
gauravjeet commentedDrupal Console command rewrite. Checked after regeneration, looks like it works fine.
https://github.com/drupalcommerce/commerce/pull/744
Comment #5
bojanz commentedYou shouldn't add the command to commerce_store.services.yml, that can cause crashes for users who don't use Console.
Instead, you need a console.services.yml file, look at drupal.org/project/ludwig for an example.
Also look at Ludwig's DownloadCommand for an example of how you can inject services instead of using $this->get().
Comment #6
mglamanFixing code stylings for PR.
Comment #7
mglamanPR https://github.com/drupalcommerce/commerce/pull/800
Comment #9
bojanz commentedThanks, everyone.
Comment #10
emanuelrighetto commentedIn order to do not brake drupalconsole if you have the devel and webprofile modules activated you have to reference the EntityManager to its interface.
I made a pull request to solve this: https://github.com/drupalcommerce/commerce/pull/806
Comment #11
bojanz commented@emanuelrighetto
Please don't reopen fixed issues after a release, a bug deserves its own issue.
Continuing in #2913444: Conflict with webprofiler.