NodeCommandController
class NodeCommandController extends CommandController implements DescriptionAwareCommandControllerInterface (View source)
Node command controller for the Neos.ContentRepository package
Properties
protected NodeTypeManager | $nodeTypeManager | ||
protected WorkspaceRepository | $workspaceRepository | ||
protected ObjectManagerInterface | $objectManager | ||
protected array | $pluginConfigurations |
Methods
Repair inconsistent nodes
Processes the given short description of the specified command.
Processes the given description of the specified command.
Detects plugins for this command controller
Details
void
repairCommand(string $nodeType = null, string $workspace = 'live', bool $dryRun = false, bool $cleanup = true, string $skip = null, string $only = null)
Repair inconsistent nodes
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 Acme.Com:Page
./flow node:repair --workspace user-robert --only removeOrphanNodes,removeNodesWithInvalidDimensions
./flow node:repair --skip removeUndefinedProperties
static string
processShortDescription(string $controllerCommandName, string $shortDescription, ObjectManagerInterface $objectManager)
Processes the given short description of the specified command.
static string
processDescription(string $controllerCommandName, string $description, ObjectManagerInterface $objectManager)
Processes the given description of the specified command.
static protected array
detectPlugins(ObjectManagerInterface $objectManager)
Detects plugins for this command controller