artesanik / sylius-employee-plugin
为Sylius提供的客户员工信息插件。
v0.3.2
2020-05-25 21:39 UTC
Requires
- php: ^7.3
- sylius/sylius: ^1.7
Requires (Dev)
- behat/behat: ^3.4
- behat/mink: ^1.7@dev
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- cweagans/composer-patches: ^1.6
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.0
- friends-of-behat/variadic-extension: ^1.1
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^6.0
- phpstan/phpstan-doctrine: ^0.11
- phpstan/phpstan-shim: ^0.11
- phpstan/phpstan-webmozart-assert: ^0.11
- phpunit/phpunit: ^8.0
- sensiolabs/security-checker: ^5.0
- sylius-labs/coding-standard: ^3.0
- symfony/browser-kit: ^3.4|^4.3
- symfony/console: ^4.4.7
- symfony/debug-bundle: ^3.4|^4.3
- symfony/dotenv: ^4.3
- symfony/intl: ^3.4|^4.3
- symfony/maker-bundle: ^1.15
- symfony/web-profiler-bundle: ^3.4|^4.3
- symfony/web-server-bundle: ^3.4|^4.3
This package is auto-updated.
Last update: 2024-09-23 13:47:20 UTC
README
员工插件
用于公司内部员工存储的插件。
文档
此插件简单地向客户模型添加四个字段:EmployeeId(员工ID)、Position(职位)、Office(办公室)和Company(公司)。
这些信息可以在管理商店界面中进行编辑。
用户可以看到这些信息,但不允许修改这些信息。
这是为了保护信息。
它有两种翻译
- 英语
- 西班牙语
欢迎通过PR提供更多翻译。
它有一个上限控制,您可以为员工创建金额或数量的限制并应用。
您还可以在管理仪表板上排除一个不受限制的员工,所有这些操作都可以在管理仪表板上完成。
安装
- 需要通过composer安装的插件
composer require artesanik/sylius-employee-plugin
- 在config/bundles.php中注册插件
....
Artesanik\SyliusEmployeePlugin\ArtesanikSyliusEmployeePlugin::class => ['all' => true],
....
- 在config/packages中创建一个名为sylius_employee_plugin.yaml的文件
cd config/packages
touch sylius_employee_plugin.yaml
nano sylius_employee_plugin.yaml
- 并将以下行放入其中
imports:
- { resource: "@ArtesanikSyliusEmployeePlugin/Resources/config/config.yml" }
- 在config/routes中创建一个名为sylius_employee_plugin.yaml的文件
cd config/routes
touch sylius_employee_plugin.yaml
nano sylius_employee_plugin.yaml
- 并将以下行放入其中
artesanik_sylius_employee_plugin:
resource: "@ArtesanikSyliusEmployeePlugin/Resources/config/routes.yml"
- 将插件迁移复制到您的迁移目录(例如src/Migrations)并应用到数据库中
cp -R vendor/artesanik/sylius-employee-plugin/migrations/* src/Migrations
bin/console doctrine:migrations:migrate
请记住要做一个
bin/console cache:clear
安装完成
完成
- 添加员工购买预算 [v0.3]
待办事项
- 将EmployeeId添加到订单
- 添加SyliusLdapPlugin的兼容性