Symfony\Component\DependencyInjection\Dumper\PhpDumper::isSimpleInstance PHP Method

isSimpleInstance() private method

Checks if the definition is a simple instance.
private isSimpleInstance ( string $id, Definition $definition ) : boolean
$id string
$definition Symfony\Component\DependencyInjection\Definition
return boolean
    private function isSimpleInstance($id, Definition $definition)
    {
        foreach (array_merge(array($definition), $this->getInlinedDefinitions($definition)) as $sDefinition) {
            if ($definition !== $sDefinition && !$this->hasReference($id, $sDefinition->getMethodCalls())) {
                continue;
            }

            if ($sDefinition->getMethodCalls() || $sDefinition->getProperties() || $sDefinition->getConfigurator()) {
                return false;
            }
        }

        return true;
    }