vendor/uvdesk/core-framework/Framework/ExtendableComponentManager.php line 11

Open in your IDE?
  1. <?php
  2. namespace Webkul\UVDesk\CoreFrameworkBundle\Framework;
  3. use Symfony\Component\DependencyInjection\ContainerInterface;
  4. class ExtendableComponentManager
  5. {
  6. private $components = [];
  7. public function __construct(ContainerInterface $container)
  8. {
  9. $this->container = $container;
  10. }
  11. public function addComponent(ExtendableComponentInterface $component, array $tags = [])
  12. {
  13. $this->components[get_class($component)] = $component;
  14. }
  15. public function getRegisteredComponent($className) : ExtendableComponentInterface
  16. {
  17. return $this->components[$className];
  18. }
  19. }