Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Define storage node by identifier #25

Conversation

daniellienert
Copy link
Contributor

Instead of defining the siteNode path and the storage node path,
in case the storage node already exists, you can use the
indetifier of the storage node.

See issue #24

Instead of defining the siteNode path and the storage node path,
in case the storage node already exists, you can use the
indetifier of the storage node.

See issue ttreeagency#24
throw new Exception(sprintf('The storage node with identifier "%s" was not found', $this->storageNodeIdentifier));
}

$pathParts = explode('/', ltrim($this->storageNode->getPath(), '/'));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dfeyer: This part is quite hacky - is there a better solution?

@dfeyer
Copy link
Member

dfeyer commented Oct 4, 2017

You can set the storageNodeNodePath to #a6436b8a-de68-4f79-9689-8ec7ff021b54 to set it by identifier, so I think this PR is not needed

But I agree that storageNodeNodePath can be renamed ;) but it's breaking or need a BC layer

@dfeyer dfeyer closed this Oct 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants