Skip to content

Commit

Permalink
[#9] add namespaces to areabricks to avoid naming collision (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukadschaak committed May 11, 2023
1 parent 2057bc3 commit 968dce3
Show file tree
Hide file tree
Showing 18 changed files with 65 additions and 115 deletions.
19 changes: 0 additions & 19 deletions config/bricks.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions src/DependencyInjection/Configuration.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,7 @@ class NeustaPimcorePresentationExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container): void
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);

$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../../config'));
$loader->load('services.yaml');

if ($config['bricks']) {
$loader->load('bricks.yaml');
}
}
}
13 changes: 13 additions & 0 deletions src/Document/Areabrick/NeustaPresentationCode.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php declare(strict_types=1);

namespace Neusta\Pimcore\PresentationBundle\Document\Areabrick;

use Pimcore\Extension\Document\Areabrick\AbstractTemplateAreabrick;

class NeustaPresentationCode extends AbstractTemplateAreabrick
{
public function getName(): string
{
return 'Neusta Presentation Code';
}
}
13 changes: 13 additions & 0 deletions src/Document/Areabrick/NeustaPresentationHeader.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php declare(strict_types=1);

namespace Neusta\Pimcore\PresentationBundle\Document\Areabrick;

use Pimcore\Extension\Document\Areabrick\AbstractTemplateAreabrick;

class NeustaPresentationHeader extends AbstractTemplateAreabrick
{
public function getName(): string
{
return 'Neusta Presentation Header';
}
}
13 changes: 13 additions & 0 deletions src/Document/Areabrick/NeustaPresentationImage.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php declare(strict_types=1);

namespace Neusta\Pimcore\PresentationBundle\Document\Areabrick;

use Pimcore\Extension\Document\Areabrick\AbstractTemplateAreabrick;

class NeustaPresentationImage extends AbstractTemplateAreabrick
{
public function getName(): string
{
return 'Neusta Presentation Image';
}
}
13 changes: 13 additions & 0 deletions src/Document/Areabrick/NeustaPresentationTextarea.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php declare(strict_types=1);

namespace Neusta\Pimcore\PresentationBundle\Document\Areabrick;

use Pimcore\Extension\Document\Areabrick\AbstractTemplateAreabrick;

class NeustaPresentationTextarea extends AbstractTemplateAreabrick
{
public function getName(): string
{
return 'Neusta Presentation Textarea';
}
}
13 changes: 13 additions & 0 deletions src/Document/Areabrick/NeustaPresentationWysiwyg.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php declare(strict_types=1);

namespace Neusta\Pimcore\PresentationBundle\Document\Areabrick;

use Pimcore\Extension\Document\Areabrick\AbstractTemplateAreabrick;

class NeustaPresentationWysiwyg extends AbstractTemplateAreabrick
{
public function getName(): string
{
return 'Neusta Presentation Wysiwyg';
}
}
13 changes: 0 additions & 13 deletions src/DocumentAreabrick/Code.php

This file was deleted.

13 changes: 0 additions & 13 deletions src/DocumentAreabrick/Header.php

This file was deleted.

13 changes: 0 additions & 13 deletions src/DocumentAreabrick/Image.php

This file was deleted.

13 changes: 0 additions & 13 deletions src/DocumentAreabrick/Textarea.php

This file was deleted.

13 changes: 0 additions & 13 deletions src/DocumentAreabrick/Wysiwyg.php

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 968dce3

Please sign in to comment.