getPathReferences() public method

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.
示例#1
0
 private function mappingsEqual(PathMapping $mapping1, PathMapping $mapping2)
 {
     return $mapping1->getRepositoryPath() === $mapping2->getRepositoryPath() && $mapping1->getPathReferences() === $mapping2->getPathReferences();
 }
示例#2
0
 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());
 }
示例#3
0
 private function mappingsEqual(PathMapping $mapping1, PathMapping $mapping2)
 {
     if ($mapping1->getRepositoryPath() !== $mapping2->getRepositoryPath()) {
         return false;
     }
     if ($mapping1->getPathReferences() !== $mapping2->getPathReferences()) {
         return false;
     }
     return true;
 }