Closed (fixed)
Project:
Entity Blueprint
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2026 at 22:51 UTC
Updated:
23 Jun 2026 at 22:55 UTC
Jump to comment: Most recent
The module registered its Drush commands through drush.services.yml, the legacy mechanism that modern Drush deprecates in favor of PSR-4 discovery of attribute-annotated Symfony Console commands under src/Drush/Commands. All three content commands also lived in one monolithic BlueprintCommands class.
Separately, now that blueprint operations enforce access against the current user, the schema and deserialize commands matter on the CLI: Drush bootstraps as the anonymous user, under which building a schema or saving a deserialized entity would be denied. There is no global --user switch in current Drush to override that.
drush.services.yml (base and entity_blueprint_ai) and the Drupal\entity_blueprint\Commands\BlueprintCommands class.Drupal\entity_blueprint\Drush\Commands and Drupal\entity_blueprint_ai\Drush\Commands, plus the reusable RunsAsSelectedUserTrait.--user option on the schema and deserialize commands.
Comments
Comment #2
tim bozeman commentedComment #4
tim bozeman commented