public function claim($token, $moduleName)
{
if (!isset($this->tokens[$token])) {
$this->tokens[$token] = array();
}
$this->tokens[$token][$moduleName] = true;
}
/** * {@inheritdoc} */ public function execute() { if ($this->mapping->isLoaded()) { return; } $this->mapping->load($this->containingModule, $this->modules); $moduleName = $this->containingModule->getName(); $this->mappings->add($this->mapping); foreach ($this->mapping->listRepositoryPaths() as $repositoryPath) { $this->mappingsByResource->set($repositoryPath, $this->mapping); $this->conflictDetector->claim($repositoryPath, $moduleName); } }