$service['arguments_count'
] =
count($arguments);
} else { $service['arguments_count'
] = 0;
} if ($definition->
getProperties()) { $service['properties'
] =
$this->
dumpCollection($definition->
getProperties());
} if ($definition->
getMethodCalls()) { $service['calls'
] =
$this->
dumpMethodCalls($definition->
getMethodCalls());
} // By default services are shared, so just provide the flag, when needed.
if ($definition->
isShared() === FALSE
) { $service['shared'
] =
$definition->
isShared();
} if ($definition->
getDecoratedService() !== NULL
) { throw new InvalidArgumentException("The 'decorated' definition is not supported by the Drupal run-time container. The Container Builder should have resolved that during the DecoratorServicePass compiler pass."
);
}