当前位置: 首页>>代码示例>>PHP>>正文


PHP UbirimiContainer::loadConfigs方法代码示例

本文整理汇总了PHP中Ubirimi\Container\UbirimiContainer::loadConfigs方法的典型用法代码示例。如果您正苦于以下问题:PHP UbirimiContainer::loadConfigs方法的具体用法?PHP UbirimiContainer::loadConfigs怎么用?PHP UbirimiContainer::loadConfigs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Ubirimi\Container\UbirimiContainer的用法示例。


在下文中一共展示了UbirimiContainer::loadConfigs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: UbirimiCoreServiceProvider

 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 */
use Ubirimi\Calendar\EventListener\CalendarEventSubscriber;
use Ubirimi\Component\EventListener\JsonResponseListener;
use Ubirimi\Container\UbirimiContainer;
use Ubirimi\EventListener\UbirimiSubscriber;
use Ubirimi\Service\ConfigService;
use Ubirimi\SvnHosting\EventListener\SvnHostingEventSubscriber;
use Ubirimi\SvnHosting\Service\SvnHostingServiceProvider;
use Ubirimi\Yongo\EventListener\IssueEventSubscriber;
use Ubirimi\Service\RouteBootstrapService;
use Ubirimi\ServiceProvider\UbirimiCoreServiceProvider;
use Ubirimi\Yongo\ServiceProvider\YongoServiceProvider;
use Ubirimi\Calendar\ServiceProvider\CalendarServiceProvider;
require_once __DIR__ . '/../vendor/autoload.php';
/* parse .properties file and make them available in the container */
$configs = ConfigService::process(__DIR__ . '/../app/config/config.properties');
/* register global configs to the container */
UbirimiContainer::loadConfigs($configs);
UbirimiContainer::register(new UbirimiCoreServiceProvider());
UbirimiContainer::register(new YongoServiceProvider());
UbirimiContainer::register(new CalendarServiceProvider());
UbirimiContainer::register(new SvnHostingServiceProvider());
UbirimiContainer::get()['dispatcher']->addSubscriber(new JsonResponseListener());
UbirimiContainer::get()['dispatcher']->addSubscriber(new IssueEventSubscriber());
UbirimiContainer::get()['dispatcher']->addSubscriber(new UbirimiSubscriber());
UbirimiContainer::get()['dispatcher']->addSubscriber(new CalendarEventSubscriber());
UbirimiContainer::get()['dispatcher']->addSubscriber(new SvnHostingEventSubscriber());
$routeBootstrapper = new RouteBootstrapService();
$urlMatcher = $routeBootstrapper->bootstrap(UbirimiContainer::get()['app.cache'], UbirimiContainer::get()['deploy.on_demand']);
开发者ID:spiasecki,项目名称:ubirimi,代码行数:31,代码来源:bootstrap.php


注:本文中的Ubirimi\Container\UbirimiContainer::loadConfigs方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。