-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into sitemapxml_multisit…
…es_languages # Conflicts: # .github/workflows/main-ci.yaml
- Loading branch information
Showing
22 changed files
with
162 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
components/MenuManagerBundle/src/bundle/Resources/translations/ibexa_menu.en.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
menu_manager: Menu manager |
1 change: 1 addition & 0 deletions
1
components/MenuManagerBundle/src/bundle/Resources/translations/ibexa_menu.fr.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
menu_manager: Gestion des menus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
orm: | ||
entity_mappings: | ||
NovaeZSEOBundle: | ||
is_bundle: true | ||
type: annotation | ||
dir: Entity | ||
prefix: Novactive\Bundle\eZSEOBundle\Entity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
install: true | ||
test: true | ||
required_ibexa_version: ^4.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
components/SamlBundle/src/bundle/DependencyInjection/Compiler/LazySaml2Auth.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace AlmaviaCX\Bundle\IbexaSamlBundle\DependencyInjection\Compiler; | ||
|
||
use AlmaviaCX\Bundle\IbexaSaml\Security\Saml\SamlAuthFactory; | ||
use OneLogin\Saml2\Auth; | ||
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | ||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
use Symfony\Component\DependencyInjection\Reference; | ||
|
||
class LazySaml2Auth implements CompilerPassInterface | ||
{ | ||
public function process(ContainerBuilder $container) | ||
{ | ||
if (!$container->hasDefinition(Auth::class)) { | ||
return; | ||
} | ||
|
||
$serviceDefinition = $container->getDefinition(Auth::class); | ||
$serviceDefinition->setFactory(new Reference(SamlAuthFactory::class)); | ||
$serviceDefinition->setLazy(true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
components/SamlBundle/src/lib/Security/Saml/SamlAuthFactory.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace AlmaviaCX\Bundle\IbexaSaml\Security\Saml; | ||
|
||
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface; | ||
use Ibexa\Core\MVC\Exception\ParameterNotFoundException; | ||
use OneLogin\Saml2\Auth; | ||
|
||
class SamlAuthFactory | ||
{ | ||
protected ConfigResolverInterface $configResolver; | ||
protected array $defaultSettings; | ||
|
||
public function __construct( | ||
ConfigResolverInterface $configResolver, | ||
array $defaultSettings | ||
) { | ||
$this->defaultSettings = $defaultSettings; | ||
$this->configResolver = $configResolver; | ||
} | ||
|
||
public function __invoke(): Auth | ||
{ | ||
$settings = $this->defaultSettings; | ||
try { | ||
$saSettings = $this->configResolver->getParameter('auth_settings', 'almaviacx.saml'); | ||
} catch (ParameterNotFoundException $exception) { | ||
$saSettings = []; | ||
} | ||
|
||
return new Auth($this->mergeSettings($settings, $saSettings)); | ||
} | ||
|
||
protected function mergeSettings(array $defaultSettings, array $settings): array | ||
{ | ||
foreach ($defaultSettings as $key => $setting) { | ||
if (!isset($settings[$key])) { | ||
continue; | ||
} | ||
if (is_array($setting)) { | ||
$defaultSettings[$key] = $this->mergeSettings($defaultSettings[$key], $settings[$key]); | ||
} else { | ||
$defaultSettings[$key] = $settings[$key]; | ||
} | ||
} | ||
|
||
return $defaultSettings; | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
components/SolrSearchExtraBundle/src/bundle/Resources/translations/ibexa_menu.en.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
solr_admin: Solr | ||
solr_admin.resources: Manage Synonyms/Stopwords |
2 changes: 2 additions & 0 deletions
2
components/SolrSearchExtraBundle/src/bundle/Resources/translations/ibexa_menu.fr.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
solr_admin: Solr | ||
solr_admin.resources: Gestion des synonymes/mots vides |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
components/TranslationUiBundle/src/bundle/Resources/translations/ibexa_menu.en.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ibexa.translation.ui.label: Translations UI |
1 change: 1 addition & 0 deletions
1
components/TranslationUiBundle/src/bundle/Resources/translations/ibexa_menu.fr.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ibexa.translation.ui.label: Gestion des traductions |