In my project, I allow only one user to manage the content of the website. This user will be added using the command line at first.
Now, I want to get the registration a
You can just change app/config/security.yml:
- { path: ^/register, role: ROLE_ADMIN }
Change from the default (IS_AUTHENTICATED_ANONYMOUSLY) to ROLE_ADMIN and it will stop allowing anonymous users from getting to the /register form.