mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 11:00:40 +08:00
SuiteCRM 8 initial commit
This commit is contained in:
commit
c895877b7e
547 changed files with 40449 additions and 0 deletions
34
core/base/Module/Service/Manager.php
Normal file
34
core/base/Module/Service/Manager.php
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
namespace SuiteCRM\Core\Base\Module\Service;
|
||||
|
||||
use SuiteCRM\Core\Base\Module\Manager as ModuleManager;
|
||||
use SuiteCRM\Core\Base\Module\Service\ServiceCollection;
|
||||
|
||||
use Symfony\Component\Config\FileLocator;
|
||||
|
||||
/**
|
||||
* Class Manager
|
||||
* @package SuiteCRM\Core\Base\Module\Service
|
||||
*/
|
||||
class Manager
|
||||
{
|
||||
protected $serviceList = [];
|
||||
|
||||
/**
|
||||
* Manager constructor.
|
||||
* @param ModuleManager $moduleManager
|
||||
*/
|
||||
public function __construct(ModuleManager $moduleManager)
|
||||
{
|
||||
foreach ($moduleManager->listEnabled() as $module) {
|
||||
$file = new FileLocator();
|
||||
|
||||
$service = new $module();
|
||||
}
|
||||
|
||||
return (new ServiceCollection())->load();
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue