You are browsing upcoming documentation for version 6.0 of OroCommerce, OroCRM, and OroPlatform, scheduled for release in 2024. Read version 5.1 (the latest LTS version) of the Oro documentation to get up-to-date information.
See our Release Process documentation for more information on the currently supported and upcoming releases.
SecurityBundle provides several custom event listeners that can alter system behavior.
Console security context listener
This listener allows passing the current user and organization to the console command so that command services can get this user and organization from a security context. By default, the security context token in the console is empty - so, to save the user and organization listener, it creates an instance of ConsoleToken and sets it to the security context.
The listener uses the following options:
- –current-user - ID, username, or email of the user that should be used as a current user;
- –current-organization - ID or name of the organization that should be used as a current organization.
php bin/console oro:import:csv ~/Contact_10k.csv --current-user=admin --current-organization=1