PHP Class Neos\ContentRepository\Command\NodeCommandController

Inheritance: extends Neos\Flow\Cli\CommandController, implements Neos\Flow\Cli\DescriptionAwareCommandControllerInterface
Mostra file Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$pluginConfigurations array
$workspaceRepository Neos\ContentRepository\Domain\Repository\WorkspaceRepository

Public Methods

Method Description
autoCreateChildNodesCommand ( string $nodeType = null, string $workspace = 'live', boolean $dryRun = false ) : void Create missing child nodes
processDescription ( string $controllerCommandName, string $description, Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : string Processes the given description of the specified command.
processShortDescription ( string $controllerCommandName, string $shortDescription, Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : string Processes the given short description of the specified command.
repairCommand ( string $nodeType = null, string $workspace = 'live', boolean $dryRun = false, boolean $cleanup = true, string $skip = null, string $only = null ) : void Repair inconsistent nodes

Protected Methods

Method Description
detectPlugins ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array Detects plugins for this command controller

Method Details

autoCreateChildNodesCommand() public method

This is a legacy command which automatically creates missing child nodes for a node type based on the structure defined in the NodeTypes configuration. NOTE: Usage of this command is deprecated and it will be remove eventually. Please use node:repair instead.
Deprecation: since 1.2
public autoCreateChildNodesCommand ( string $nodeType = null, string $workspace = 'live', boolean $dryRun = false ) : void
$nodeType string Node type name, if empty update all declared node types
$workspace string Workspace name, default is 'live'
$dryRun boolean Don't do anything, but report missing child nodes
return void

detectPlugins() protected static method

Detects plugins for this command controller
protected static detectPlugins ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
return array

processDescription() public static method

Processes the given description of the specified command.
public static processDescription ( string $controllerCommandName, string $description, Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : string
$controllerCommandName string Name of the command the description is referring to, for example "flush"
$description string The command description so far
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface The object manager, can be used to access further information necessary for rendering the description
return string the possibly modified command description

processShortDescription() public static method

Processes the given short description of the specified command.
public static processShortDescription ( string $controllerCommandName, string $shortDescription, Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : string
$controllerCommandName string Name of the command the description is referring to, for example "flush"
$shortDescription string The short command description so far
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface The object manager, can be used to access further information necessary for rendering the description
return string the possibly modified short command description

repairCommand() public method

This command analyzes and repairs the node tree structure and individual nodes based on the current node type configuration. It is possible to execute only one or more specific checks by providing the --skip or --only option. See the full description of checks further below for possible check identifiers. The following checks will be performed: {pluginDescriptions} Examples: ./flow node:repair ./flow node:repair --node-type Neos.NodeTypes:Page ./flow node:repair --workspace user-robert --only removeOrphanNodes,removeNodesWithInvalidDimensions ./flow node:repair --skip removeUndefinedProperties
public repairCommand ( string $nodeType = null, string $workspace = 'live', boolean $dryRun = false, boolean $cleanup = true, string $skip = null, string $only = null ) : void
$nodeType string Node type name, if empty update all declared node types
$workspace string Workspace name, default is 'live'
$dryRun boolean Don't do anything, but report actions
$cleanup boolean If FALSE, cleanup tasks are skipped
$skip string Skip the given check or checks (comma separated)
$only string Only execute the given check or checks (comma separated)
return void

Property Details

$nodeTypeManager protected_oe property

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
return Neos\ContentRepository\Domain\Service\NodeTypeManager

$objectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
return Neos\Flow\ObjectManagement\ObjectManagerInterface

$pluginConfigurations protected_oe property

protected array $pluginConfigurations
return array

$workspaceRepository protected_oe property

protected WorkspaceRepository,Neos\ContentRepository\Domain\Repository $workspaceRepository
return Neos\ContentRepository\Domain\Repository\WorkspaceRepository