Call getPath() instead of string casting
This commit is contained in:
parent
8462233a08
commit
fc15bf36ab
|
@ -44,7 +44,7 @@ class WebServiceContext
|
||||||
if (null === $this->serviceDefinition) {
|
if (null === $this->serviceDefinition) {
|
||||||
$cache = new ConfigCache(sprintf('%s/%s.definition.php', $this->options['cache_dir'], $this->options['name']), $this->options['debug']);
|
$cache = new ConfigCache(sprintf('%s/%s.definition.php', $this->options['cache_dir'], $this->options['name']), $this->options['debug']);
|
||||||
if ($cache->isFresh()) {
|
if ($cache->isFresh()) {
|
||||||
$this->serviceDefinition = include (string) $cache;
|
$this->serviceDefinition = include $cache->getPath();
|
||||||
} else {
|
} else {
|
||||||
if (!$this->loader->supports($this->options['resource'], $this->options['resource_type'])) {
|
if (!$this->loader->supports($this->options['resource'], $this->options['resource_type'])) {
|
||||||
throw new \LogicException(sprintf('Cannot load "%s" (%s)', $this->options['resource'], $this->options['resource_type']));
|
throw new \LogicException(sprintf('Cannot load "%s" (%s)', $this->options['resource'], $this->options['resource_type']));
|
||||||
|
@ -82,7 +82,7 @@ class WebServiceContext
|
||||||
$cache->write($dumper->dump());
|
$cache->write($dumper->dump());
|
||||||
}
|
}
|
||||||
|
|
||||||
return (string) $cache;
|
return $cache->getPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getServiceBinder()
|
public function getServiceBinder()
|
||||||
|
|
Loading…
Reference in New Issue