Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency Injection #18

Open
johanv opened this issue Feb 16, 2017 · 0 comments
Open

Dependency Injection #18

johanv opened this issue Feb 16, 2017 · 0 comments

Comments

@johanv
Copy link
Contributor

johanv commented Feb 16, 2017

Het zou cool zijn moesten we de KAVO-API kunnen injecteren.

Toevallig vond ik in CiviCRM zelf hoe ze daar DI gebruiken voor de CiviCRM-API (in api/api.php:43):

$result = \Civi::service('civi_api_kernel')->runSafe($entity, $action, $params);

Dat ziet er erg symfony-achtig uit, en lijkt op hoe het in Drupal8 gebeurt. Misschien dat wij ook wel zoiets kunnen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant