本文整理汇总了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);
}
示例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;
}