Пример #1
0
 /**
  * Returns the Configuration for the given path
  *
  * @param string $path
  * @throws \Cundd\Rest\VirtualObject\Exception\MissingConfigurationException
  * @return ConfigurationInterface
  */
 public function getConfigurationForPath($path)
 {
     $path = substr($path, strpos($path, '-') + 1);
     // Strip the "VirtualObject-" from the path
     if (!$path) {
         throw new MissingConfigurationException('Could not get configuration for empty path', 1395932408);
     }
     return $this->configurationFactory->createFromTypoScriptForPath($path);
 }
Пример #2
0
 /**
  * @test
  */
 public function createFromTypoScriptForPathTest()
 {
     $configurationObject = $this->fixture->createFromTypoScriptForPath('ResourceName');
     $this->validateConfiguration($configurationObject);
 }