phpcr-utils/src/PHPCR/Util/Console/Command/RegisterNodeTypesCommand.php
This file is part of the PHPCR Utils
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
\PHPCR\Util\Console\Command\RegisterNodeTypesCommand
Package: Default
Command to load and register a node type defined in a common nodetype
definition (CND) file.
See the link below for the cnd definition.
- Parent(s)
- \Symfony\Component\Console\Command\Command
- Author
- Uwe Jäger
- Link
- http://jackrabbit.apache.org/node-type-notation.html
Methods
updateFromCnd(\Symfony\Component\Console\Output\OutputInterface $output, \PHPCR\SessionInterface $session, string $cnd, bool $allowUpdate) : void
Actually do the update.
Parameters
Throws
Name | Type | Description |
---|---|---|
$output | \Symfony\Component\Console\Output\OutputInterface | the console output stream |
$session | \PHPCR\SessionInterface | the PHPCR session to talk to |
$cnd | string | the compact namespace and node type definition in string form |
$allowUpdate | bool | whether to allow updating existing node types. |
Exception | Description |
---|---|
\PHPCR\RepositoryException | on other errors |