@@ -39,7 +39,7 @@ class DrupalExtension implements ExtensionInterface
3939 *
4040 * @param null|ServiceProcessor $processor
4141 */
42- public function __construct (ServiceProcessor $ processor = null )
42+ public function __construct (? ServiceProcessor $ processor = null )
4343 {
4444 $ this ->processor = $ processor ? : new ServiceProcessor ();
4545 }
@@ -131,11 +131,13 @@ public function configure(ArrayNodeDefinition $builder)
131131 'Text strings, such as Log out or the Username field can be altered via behat.yml if they vary from the default values. ' . PHP_EOL
132132 . ' login_url: "/user" ' . PHP_EOL
133133 . ' logout_url: "/user/logout" ' . PHP_EOL
134+ . ' logout_confirm_url: "/user/logout/confirm" ' . PHP_EOL
134135 . ' log_out: "Sign out" ' . PHP_EOL
135136 . ' log_in: "Sign in" ' . PHP_EOL
136137 . ' password_field: "Enter your password" ' . PHP_EOL
137138 . ' username_field: "Nickname" '
138139 )->
140+ ignoreExtraKeys (false )->
139141 addDefaultsIfNotSet ()->
140142 children ()->
141143 scalarNode ('login_url ' )->
@@ -144,6 +146,9 @@ public function configure(ArrayNodeDefinition $builder)
144146 scalarNode ('logout_url ' )->
145147 defaultValue ('/user/logout ' )->
146148 end ()->
149+ scalarNode ('logout_confirm_url ' )->
150+ defaultValue ('/user/logout/confirm ' )->
151+ end ()->
147152 scalarNode ('log_in ' )->
148153 defaultValue ('Log in ' )->
149154 end ()->
@@ -159,6 +164,7 @@ public function configure(ArrayNodeDefinition $builder)
159164 end ()->
160165 end ()->
161166 arrayNode ('selectors ' )->
167+ ignoreExtraKeys (false )->
162168 addDefaultsIfNotSet ()->
163169 children ()->
164170 scalarNode ('message_selector ' )->end ()->
0 commit comments