您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

FeatureProducerModule.php 750B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace common\logic\Feature\FeatureProducer;
  3. use common\logic\AbstractModule;
  4. class FeatureProducerModule extends AbstractModule
  5. {
  6. public function getServices(): array
  7. {
  8. return [
  9. FeatureProducerDefinition::class,
  10. FeatureProducerRepository::class,
  11. FeatureProducerBuilder::class,
  12. ];
  13. }
  14. public function getDefinition(): FeatureProducerDefinition
  15. {
  16. return FeatureProducerDefinition::getInstance();
  17. }
  18. public function getRepository(): FeatureProducerRepository
  19. {
  20. return FeatureProducerRepository::getInstance();
  21. }
  22. public function getBuilder(): FeatureProducerBuilder
  23. {
  24. return FeatureProducerBuilder::getInstance();
  25. }
  26. }