简体   繁体   English

我在哪里可以在Sylius中添加新的管理员?

[英]Where can I add new Admin in Sylius?

I just updated my sylius app. 我刚刚更新了sylius应用。 As per new commits, admin crud have been added. 根据新提交,已添加admin crud。 But I don't see it. 但是我看不到。 Can someone share information about it? 有人可以分享有关它的信息吗?

I came across this issue earlier today as well. 我今天早些时候也遇到了这个问题。 I upgraded my sylius install it introduced sylius_admin_user table, but it was empty. 我升级了sylius,安装了sylius_admin_user表,但它是空的。

To get around it, i commented out the following lines on the file /adsup/src/Sylius/Bundle/InstallerBundle/Command/SetupCommand.php 为了解决这个问题,我在文件/adsup/src/Sylius/Bundle/InstallerBundle/Command/SetupCommand.php注释了以下几行

//$this->setupCurrency($input, $output);
//$this->setupLocale($input, $output);
//$this->setupChannel();
$this->setupAdministratorUser($input, $output);

Leave the last one uncommented. 让最后一个保持注释。 Then run sylius:install:setup fill in the details and you will have a new admin user. 然后运行sylius:install:setup填写详细信息,您将拥有一个新的admin用户。 It's a bit of a hack until someone adds an Add Admin User to go along with the Add Shop User 在有人添加“添加管理员用户”和“添加商店用户”并存之前,这是一个小技巧

Actually i have just added a pull request for an admin-user:create command 实际上,我刚刚添加了对admin-user:create命令的请求请求

from the documentation: 从文档中:

If you want to try out new Sylius UI, please run the following commands: 如果要尝试新的Sylius UI,请运行以下命令:

 $ npm install $ npm run gulp 

I missed this a couple of times too and also wondered how to get the new admin... 我也错过了几次,也想知道如何获得新管理员。

btw, the url has changed from /administration to /admin - be careful about that too :) 顺便说一句,URL已经从/ administration更改为/ admin-也要注意这一点:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM