+ /**
+ * Throw a 404 if the feature is disabled.
+ */
+ private function isSiteCredentialsEnabled()
+ {
+ if (!$this->get('craue_config')->get('restricted_access')) {
+ throw $this->createNotFoundException('Feature "restricted_access" is disabled, controllers too.');
+ }
+ }
+