Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
introduce ckedior by FOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectricMaxxx committed Jun 13, 2018
1 parent 8ccd034 commit 2723fe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DependencyInjection/Factory/ContentAdminFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function create(array $config, ContainerBuilder $container, XmlFileLoader
$ckeditorConfig = [];
if ($this->isConfigEnabledAuto($container, $config['fos_ck_editor']['enabled'], 'FOSCKEditorBundle', $message)) {
if (!isset($config['fos_ck_editor']['config_name'])) {
throw new InvalidConfigurationException('The cmf_sonata_phpcr_admin_integration.bundles.content.fos_ck_editor.config_name setting has to be defined when IvoryCKEditorBundle integration is enabled.');
throw new InvalidConfigurationException('The cmf_sonata_phpcr_admin_integration.bundles.content.fos_ck_editor.config_name setting has to be defined when FOSCKEditorBundle integration is enabled.');
}

unset($config['fos_ck_editor']['enabled']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function testCKEditorDisabledWithoutConfigName()

$this->create($config);

$this->assertEquals([], $this->container->getParameter('cmf_sonata_phpcr_admin_integration.content.fos_ckeditor'));
$this->assertEquals([], $this->container->getParameter('cmf_sonata_phpcr_admin_integration.content.fos_ck_editor'));
}

public function testCKEditorEnabledWithConfigName()
Expand Down

0 comments on commit 2723fe7

Please sign in to comment.