Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: userc865b
Added: Jan 30, 2018 11:31 PM
Views: 14
Tags: symfony
dependency injection in symfony constructor injecton without interface
  1.  check_criteria:
  2.         class: AppBundle\WetterApi\CheckCriteria
  3.         arguments: ['@naming','@daytemp','@rival']
  4.  
  5.     naming:
  6.         class: AppBundle\WetterApi\Criteria\CriteriaNaming
  7.  
  8.     daytemp:
  9.         class: AppBundle\WetterApi\Criteria\CriteriaDayTemp
  10.  
  11.     rival:
  12.         class: AppBundle\WetterApi\Criteria\CriteriaRival