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


PHP EngineBlock_ApplicationSingleton::getConfiguration方法代码示例

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


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

示例1: _bootstrapLayout

 protected function _bootstrapLayout()
 {
     $layout = new Zend_Layout();
     // Set a layout script path:
     $layout->setLayoutPath(ENGINEBLOCK_FOLDER_APPLICATION . 'layouts/scripts/');
     // Defaults
     $defaultsConfig = $this->_application->getConfiguration()->defaults;
     $layout->title = $defaultsConfig->title;
     $layout->header = $defaultsConfig->header;
     // choose a different layout script:
     $layout->setLayout($defaultsConfig->layout);
     $this->_application->setLayout($layout);
 }
开发者ID:WebSpider,项目名称:OpenConext-engineblock,代码行数:13,代码来源:Bootstrapper.php

示例2: _configureMetadataRepository

 /**
  * @param EngineBlock_Corto_ProxyServer $proxyServer
  * @param EngineBlock_ApplicationSingleton $application
  * @return CompositeMetadataRepository
  * @throws EngineBlock_Exception
  */
 protected function _configureMetadataRepository(EngineBlock_Corto_ProxyServer $proxyServer, EngineBlock_ApplicationSingleton $application)
 {
     $idpEntityId = $proxyServer->getUrl('idpMetadataService');
     $metadataRepository = $this->getMetadataRepository();
     $keyPair = $this->configureProxyCertificates($proxyServer, $application->getConfiguration());
     $engineIdentityProvider = $this->getEngineIdpRole($metadataRepository, $keyPair, $idpEntityId);
     $engineServiceProvider = $this->getEngineSpRole($metadataRepository, $keyPair, $proxyServer);
     $proxyServer->setConfig('Processing', array('Consent' => $engineServiceProvider));
     $metadataRepository->appendFilter(new RemoveEntityByEntityIdFilter($engineServiceProvider->entityId));
     $metadataRepository->appendFilter(new RemoveEntityByEntityIdFilter($engineIdentityProvider->entityId));
     $engineServiceProviderAlternateWorkflow = clone $engineServiceProvider;
     $engineServiceProviderAlternateWorkflow->toggleWorkflowState();
     $engineIdentityProviderAlternateWorkflow = clone $engineIdentityProvider;
     $engineIdentityProviderAlternateWorkflow->toggleWorkflowState();
     $ownMetadataRepository = new InMemoryMetadataRepository(array($engineIdentityProvider, $engineIdentityProviderAlternateWorkflow), array($engineServiceProvider, $engineServiceProviderAlternateWorkflow));
     $metadataRepository->appendRepository($ownMetadataRepository);
     return $metadataRepository;
 }
开发者ID:WebSpider,项目名称:OpenConext-engineblock,代码行数:24,代码来源:Adapter.php


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