How to inject a service into a callback in ajax form?

I can’t access to my injected service from inside a form #ajax callback method : this is the form element that triggers the #ajax callback ( which is an external class method): /src/Form/EndPointConstructorForm.php $form[‘bundle’] = [ ‘#ajax’ => [ ‘event’ => ‘change’, ‘callback’ => ‘\Drupal\jsonapi_endpoint_explorer\AjaxHandler\EndPointConstructorAjaxHandler::bundleOnChange’, ‘wrapper’ => ‘sort-edit’, ], ]; this is the triggered callback…

Details

‘pass’: Easyest way to synchronize the password-store between multiple machines

I moved to the pass password manager and I try to integrate it as good as possible into my workflow. However, I’m not familiar with deeper synchronization/version-control concepts (git, password server), so I’m stuck syncing the passwords between multiple computers. I’m using Linux (Debian 9) and the synchronization is done over the local network with…

Details

restorecon not setting fcontext create using semanage

I think there is a gap in my understanding of how to change one file’s context permantently. After reading through https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/selinux_users_and_administrators_guide/index#sect-Security-Enhanced_Linux-SELinux_Contexts_Labeling_Files-Persistent_Changes_semanage_fcontext, I think I should be able to set a context for a file and restorecon will then use that instead of any selinux policy for that file. However, I’m seeing a restorecon set this…

Details