コード例 #1
0
ファイル: Serializer.php プロジェクト: eigentor/tommiblog
 /**
  * {@inheritdoc}
  */
 public function calculateDependencies()
 {
     $dependencies = parent::calculateDependencies();
     $formats = $this->getFormats();
     $providers = array_intersect_key($this->formatProviders, array_flip($formats));
     // The plugin always uses services from the serialization module.
     $providers[] = 'serialization';
     $dependencies += ['module' => []];
     $dependencies['module'] = array_merge($dependencies['module'], $providers);
     return $dependencies;
 }