File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88use Neos \ContentRepository \Domain \Service \ImportExport \NodeImportService ;
99use Neos \ContentRepository \Domain \Repository \NodeDataRepository ;
1010use Neos \Eel \FlowQuery \FlowQuery ;
11- use Neos \Flow \Persistence \Generic \PersistenceManager ;
12- use Neos \Flow \ResourceManagement \PersistentResource ;
11+ use Neos \Flow \Persistence \PersistenceManagerInterface ;
1312use Sitegeist \Taxonomy \Service \DimensionService ;
1413use Sitegeist \Taxonomy \Service \TaxonomyService ;
1514
@@ -56,7 +55,7 @@ class TaxonomyCommandController extends CommandController
5655 protected $ dimensionService ;
5756
5857 /**
59- * @var PersistenceManager
58+ * @var PersistenceManagerInterface
6059 * @Flow\Inject
6160 */
6261 protected $ persistenceManager ;
Original file line number Diff line number Diff line change 11<?php
22namespace Sitegeist \Taxonomy \Hooks ;
33
4- use Neos \Error \Messages \Message ;
54use Neos \Flow \Annotations as Flow ;
65use Neos \ContentRepository \Domain \Model \NodeInterface ;
76use Sitegeist \Taxonomy \Service \TaxonomyService ;
87use Sitegeist \Taxonomy \Service \DimensionService ;
9- use Psr \Log \LoggerInterface ;
108
119/**
1210 * Class ContentRepositoryHooks
1614class ContentRepositoryHooks
1715{
1816
19- /**
20- * @var LoggerInterface
21- * @Flow\Inject
22- */
23- protected $ logger ;
24-
2517 /**
2618 * @var TaxonomyService
2719 * @Flow\Inject
@@ -46,8 +38,6 @@ class ContentRepositoryHooks
4638 */
4739 public function nodeAdded (NodeInterface $ node )
4840 {
49- $ this ->logger ->info (sprintf ("CREATED NODE %S " , $ node ->getContextPath ()));
50-
5141 if ($ node ->getNodeType ()->isOfType ($ this ->taxonomyService ->getRootNodeType ()) ||
5242 $ node ->getNodeType ()->isOfType ($ this ->taxonomyService ->getVocabularyNodeType ()) ||
5343 $ node ->getNodeType ()->isOfType ($ this ->taxonomyService ->getTaxonomyNodeType ())) {
@@ -66,8 +56,6 @@ public function nodeAdded(NodeInterface $node)
6656 */
6757 public function nodeRemoved (NodeInterface $ node )
6858 {
69- $ this ->logger ->info (sprintf ("CREATED NODE %S " , $ node ->getContextPath ()));
70-
7159 if ($ node ->getNodeType ()->isOfType ($ this ->taxonomyService ->getRootNodeType ()) ||
7260 $ node ->getNodeType ()->isOfType ($ this ->taxonomyService ->getVocabularyNodeType ()) ||
7361 $ node ->getNodeType ()->isOfType ($ this ->taxonomyService ->getTaxonomyNodeType ())) {
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ Sitegeist:
1313 ui :
1414 label : ' Taxonomy References'
1515 inspector :
16+ editor : ' Sitegeist.Taxonomy:TaxonomyEditor'
1617 editorOptions :
17- nodeTypes : ['Sitegeist.Taxonomy:Taxonomy']
1818 startingPoint : ' /taxonomies'
1919 placeholder : ' assign Taxonomies'
2020
4141 Sitegeist.Taxonomy :
4242 - ' Main'
4343 - ' NodeTypes/*'
44+ nodeTypes :
45+ presets :
46+ properties :
47+ taxonomyReferences :
48+ type : references
49+ ui :
50+ label : ' Taxonomy References'
51+ inspector :
52+ editor : ' Sitegeist.Taxonomy:TaxonomyEditor'
53+ editorOptions :
54+ startingPoint : ' /taxonomies'
55+ placeholder : ' assign Taxonomies'
4456
4557 Fusion :
4658 defaultContext :
5971 ' Sitegeist.Taxonomy:secondaryInspector ' :
6072 pattern : ControllerObjectName
6173 patternOptions :
62- controllerObjectNamePattern : ' Sitegeist\Taxonomy\Controller\SecondaryInspectorController'
74+ controllerObjectNamePattern : ' Sitegeist\Taxonomy\Controller\SecondaryInspectorController'
You can’t perform that action at this time.
0 commit comments