getPaths() публичный Метод

Just don't use this.
Устаревший: since 3.0, to be removed in 4.0.
public getPaths ( ) : PathsProxy
Результат PathsProxy
 public function testBoltAppSetup()
 {
     $config = new ResourceManager(TEST_ROOT);
     $app = new Application(array('resources' => $config));
     $this->assertEquals($config->getPaths(), $app['resources']->getPaths());
     // Test that the Application has initialised the resources, injecting in config values.
     $this->assertContains(TEST_ROOT . "/theme", $config->getPath("theme"));
     $this->assertNotEmpty($config->getUrl("canonical"));
 }
Пример #2
0
 public function testBoltAppSetup()
 {
     $config = new ResourceManager(new \Pimple(['rootpath' => TEST_ROOT, 'pathmanager' => new PlatformFileSystemPathFactory()]));
     $config->compat();
     $app = new Application(['resources' => $config]);
     $this->assertEquals($config->getPaths(), $app['resources']->getPaths());
     // Test that the Application has initialised the resources, injecting in config values.
     $this->assertContains(Path::fromString(TEST_ROOT . '/theme')->string(), $config->getPath('theme'));
     $this->assertNotEmpty($config->getUrl('canonical'));
 }