Skip to content

Commit d11d513

Browse files
committed
TASK: Restructure codebase
1 parent c78fcfb commit d11d513

28 files changed

+109
-103
lines changed

Classes/Application/Command/NodeTemplateCommandController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Flowpack\NodeTemplates\Application\Command;
66

7-
use Flowpack\NodeTemplates\Infrastructure\NodeTemplateDumper\NodeTemplateDumper;
7+
use Flowpack\NodeTemplates\Domain\NodeTemplateDumper\NodeTemplateDumper;
88
use Neos\Flow\Annotations as Flow;
99
use Neos\Flow\Cli\CommandController;
1010
use Neos\Neos\Domain\Service\ContentContextFactory;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Flowpack\NodeTemplates\Application\NodeCreationHandler;
4+
namespace Flowpack\NodeTemplates\Domain;
55

66
use Neos\ContentRepository\Domain\Model\NodeInterface;
77
use Neos\Flow\Annotations as Flow;
@@ -15,13 +15,13 @@
1515
*
1616
* @todo once we have sorting with https://github.com/neos/neos-ui/pull/3511 we can put our handler at the end instead.
1717
*/
18-
class TemplatingDocumentTitleNodeCreationHandler implements NodeCreationHandlerInterface
18+
class DelegatingDocumentTitleNodeCreationHandler implements NodeCreationHandlerInterface
1919
{
2020
/**
2121
* @Flow\Inject
2222
* @var DocumentTitleNodeCreationHandler
2323
*/
24-
protected $augmentedDocumentTitleNodeCreationHandler;
24+
protected $originalDocumentTitleNodeCreationHandler;
2525

2626
/**
2727
* @throws \Neos\Eel\Exception
@@ -34,7 +34,7 @@ public function handle(NodeInterface $node, array $data): void
3434
!$template
3535
|| !isset($template['properties']['uriPathSegment'])
3636
) {
37-
$this->augmentedDocumentTitleNodeCreationHandler->handle($node, $data);
37+
$this->originalDocumentTitleNodeCreationHandler->handle($node, $data);
3838
return;
3939
}
4040

Classes/Domain/CaughtException.php renamed to Classes/Domain/ExceptionHandling/CaughtException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Flowpack\NodeTemplates\Domain;
3+
namespace Flowpack\NodeTemplates\Domain\ExceptionHandling;
44

55

66
use Neos\Flow\Annotations as Flow;

Classes/Domain/CaughtExceptions.php renamed to Classes/Domain/ExceptionHandling/CaughtExceptions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php
22

3-
namespace Flowpack\NodeTemplates\Domain;
3+
namespace Flowpack\NodeTemplates\Domain\ExceptionHandling;
44

5+
use Flowpack\NodeTemplates\Domain\ExceptionHandling\CaughtException;
56
use Neos\Flow\Annotations as Flow;
67

78
/** @Flow\Proxy(false) */

Classes/Domain/ExceptionHandlingStrategy.php renamed to Classes/Domain/ExceptionHandling/ExceptionHandlingStrategy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Flowpack\NodeTemplates\Domain;
3+
namespace Flowpack\NodeTemplates\Domain\ExceptionHandling;
44

55
use Neos\Flow\Annotations as Flow;
66

Classes/Domain/TemplatePartiallyAppliedException.php renamed to Classes/Domain/ExceptionHandling/TemplatePartiallyAppliedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Flowpack\NodeTemplates\Domain;
3+
namespace Flowpack\NodeTemplates\Domain\ExceptionHandling;
44

55
class TemplatePartiallyAppliedException extends \RuntimeException
66
{
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<?php
22

3-
namespace Flowpack\NodeTemplates\Infrastructure\ContentRepository;
3+
namespace Flowpack\NodeTemplates\Domain\NodeCreation;
44

5-
use Flowpack\NodeTemplates\Domain\CaughtException;
6-
use Flowpack\NodeTemplates\Domain\CaughtExceptions;
7-
use Flowpack\NodeTemplates\Domain\RootTemplate;
8-
use Flowpack\NodeTemplates\Domain\Template;
9-
use Flowpack\NodeTemplates\Domain\Templates;
5+
use Flowpack\NodeTemplates\Domain\ExceptionHandling\CaughtException;
6+
use Flowpack\NodeTemplates\Domain\ExceptionHandling\CaughtExceptions;
7+
use Flowpack\NodeTemplates\Domain\Template\RootTemplate;
8+
use Flowpack\NodeTemplates\Domain\Template\Template;
9+
use Flowpack\NodeTemplates\Domain\Template\Templates;
1010
use Neos\ContentRepository\Domain\Model\NodeInterface;
1111
use Neos\ContentRepository\Domain\Service\NodeTypeManager;
1212
use Neos\ContentRepository\Exception\NodeConstraintException;
1313
use Neos\Flow\Annotations as Flow;
1414
use Neos\Neos\Service\NodeOperations;
1515
use Neos\Neos\Utility\NodeUriPathSegmentGenerator;
1616

17-
class ContentRepositoryTemplateHandler
17+
class NodeCreationService
1818
{
1919
/**
2020
* @var NodeOperations

Classes/Infrastructure/ContentRepository/PropertiesAndReferences.php renamed to Classes/Domain/NodeCreation/PropertiesAndReferences.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Flowpack\NodeTemplates\Infrastructure\ContentRepository;
3+
namespace Flowpack\NodeTemplates\Domain\NodeCreation;
44

5-
use Flowpack\NodeTemplates\Domain\CaughtException;
6-
use Flowpack\NodeTemplates\Domain\CaughtExceptions;
5+
use Flowpack\NodeTemplates\Domain\ExceptionHandling\CaughtException;
6+
use Flowpack\NodeTemplates\Domain\ExceptionHandling\CaughtExceptions;
77
use Neos\ContentRepository\Domain\Model\NodeType;
88
use Neos\ContentRepository\Domain\Service\Context;
99
use Neos\Flow\Annotations as Flow;

Classes/Infrastructure/ContentRepository/PropertyIgnoredException.php renamed to Classes/Domain/NodeCreation/PropertyIgnoredException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Flowpack\NodeTemplates\Infrastructure\ContentRepository;
3+
namespace Flowpack\NodeTemplates\Domain\NodeCreation;
44

55
class PropertyIgnoredException extends \RuntimeException
66
{

Classes/Infrastructure/ContentRepository/PropertyType.php renamed to Classes/Domain/NodeCreation/PropertyType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Flowpack\NodeTemplates\Infrastructure\ContentRepository;
5+
namespace Flowpack\NodeTemplates\Domain\NodeCreation;
66

77
use GuzzleHttp\Psr7\Uri;
88
use Neos\ContentRepository\Domain\Model\NodeType;

0 commit comments

Comments
 (0)