Skip to content

Commit

Permalink
Add missing services.yaml update (for username pattern).
Browse files Browse the repository at this point in the history
  • Loading branch information
thisismeonmounteverest committed May 6, 2024
1 parent 1d00da9 commit 8eace0d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ parameters:
forum_notification_batch_size: '%env(int:forum_notification_batch_size)%'
locales: "%env(csv:LOCALES)%"
document_locales: "%env(DOCUMENT_LOCALES)%"
username.pattern: "/[a-z](?!.*[-_.][-_.])[a-z0-9-._]{2,18}[a-z0-9]/i"
username.pattern: "/^[a-z](?!.*[-_.][-_.])[a-z0-9-._]{2,18}[a-z0-9]/i"
manticore.host: '%env(MANTICORE_HOST)%'
manticore.port: '%env(int:MANTICORE_PORT)%'

Expand All @@ -37,6 +37,7 @@ services:
$manticorePort: '%manticore.port%'
$locales: '%locales%'
$formLoginAuthenticator: '@security.authenticator.form_login.main'
$usernamePattern: '%username.pattern%'

# makes classes in src/ available to be used as services
# this creates a service per class whose id is the fully-qualified class name
Expand Down Expand Up @@ -479,8 +480,3 @@ services:
app.mockup_provider.profile:
class: App\Model\MockupProvider\ProfileMockups
tags: [ 'app.mockup_provider' ]

# app.signup.form:
# class: App\Form\SignupFormType
# arguments:
# $usernamePattern: '%username.pattern%'

0 comments on commit 8eace0d

Please sign in to comment.