The path references refer to filesystem paths. A path reference is
either:
* a path relative to the root directory of the containing module;
* a path relative to the root directory of another module, prefixed
with @vendor/module:, where "vendor/module" is the name of the
referenced module.
public getPathReferences ( ) : string[] | ||
return | string[] | The path references. |
private function mappingsEqual(PathMapping $mapping1, PathMapping $mapping2) { return $mapping1->getRepositoryPath() === $mapping2->getRepositoryPath() && $mapping1->getPathReferences() === $mapping2->getPathReferences(); }
public function testUnload() { $mapping = new PathMapping('/path', 'resources'); $mapping->load($this->package1, $this->packages); $mapping->unload(); $this->assertSame(array('resources'), $mapping->getPathReferences()); $this->assertFalse($mapping->isLoaded()); }
private function mappingsEqual(PathMapping $mapping1, PathMapping $mapping2) { if ($mapping1->getRepositoryPath() !== $mapping2->getRepositoryPath()) { return false; } if ($mapping1->getPathReferences() !== $mapping2->getPathReferences()) { return false; } return true; }