Answers.Body: <p>This was answered on the CiviCRM Mattermost server. Symfony components are available through the CiviCRM development environment and not needed to be handled through the Symfony framework.</p>
  <p>It was also suggested that I read several extensions and how they are built to get examples.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-22T13:42:54.503Z
Answers.Text: One thing to note is that Civi's version of dependency-injection isn't the same as what you might expect because it needs to support all the existing code. So for example whereas you would normally access a service by listing the interface you want and the container will provide an implementation for you, you usually need to access it with Civi::something(), e.g. Civi::cache(). And to override service implementations there's no config file, the closest thing I think is hook_civicrm_config.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-22T09:42:14.453Z
Answers.LastActivityDate: 2021-08-22T09:42:14.453Z
Answers.UserDisplayName: Karl Tatgenhorst
Body: <p>It looks like Symfony is fairly capable of being integrated into Civi Extensions, but the documentation seems sparse. I am going through the Symfony docs/training but would like to see some good docs on how they play.</p>
  <p>I also posted this in the dev group on Mattermost server.</p>
  <p>Thanks</p>
  
Tags: <extension><symfony>
Title: Looking at Building CiviCRM extensions - Symfony info
ThreadText: # Looking at Building CiviCRM extensions - Symfony info
  
  (Asked by: username_0 on 2021-08-22)
  
  It looks like Symfony is fairly capable of being integrated into Civi Extensions, but the documentation seems sparse. I am going through the Symfony docs/training but would like to see some good docs on how they play.
  
  I also posted this in the dev group on Mattermost server.
  
  Thanks
  
  **Tags:** extension, symfony
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2021-08-22. Score: 1
  
  This was answered on the CiviCRM Mattermost server. Symfony components are available through the CiviCRM development environment and not needed to be handled through the Symfony framework.
  
  It was also suggested that I read several extensions and how they are built to get examples.
  
  > **Comments:**
  > **username_1**: One thing to note is that Civi's version of dependency-injection isn't the same as what you might expect because it needs to support all the existing code. So for example whereas you would normally access a service by listing the interface you want and the container will provide an implementation for you, you usually need to access it with Civi::something(), e.g. Civi::cache(). And to override service implementations there's no config file, the closest thing I think is hook_civicrm_config.  
  
  ---
  
  