[DependencyInjection] Fix up @throws documentation

This commit is contained in:
Jeremy Mikola 2011-12-04 15:57:59 -08:00
parent 123f514e06
commit b7300d2e07
6 changed files with 8 additions and 5 deletions

View File

@ -50,7 +50,7 @@ class CheckCircularReferencesPass implements CompilerPassInterface
* Checks for circular references.
*
* @param array $edges An array of Nodes
* @throws \RuntimeException When a circular reference is found.
* @throws ServiceCircularReferenceException When a circular reference is found.
*/
private function checkOutEdges(array $edges)
{

View File

@ -115,7 +115,8 @@ class CheckReferenceValidityPass implements CompilerPassInterface
*
* @param Reference $reference
* @param Definition $definition
* @throws \RuntimeException when there is an issue with the Reference scope
* @throws ScopeWideningInjectionException when the definition references a service of a narrower scope
* @throws ScopeCrossingInjectionException when the definition references a service of another scope hierarchy
*/
private function validateScope(Reference $reference, Definition $definition = null)
{

View File

@ -28,6 +28,7 @@ class RepeatedPass implements CompilerPassInterface
* Constructor.
*
* @param array $passes An array of RepeatablePassInterface objects
* @throws InvalidArgumentException if a pass is not a RepeatablePassInterface instance
*/
public function __construct(array $passes)
{

View File

@ -48,7 +48,7 @@ class ServiceReferenceGraph
*
* @param string $id The id to retrieve
* @return ServiceReferenceGraphNode The node matching the supplied identifier
* @throws \InvalidArgumentException
* @throws InvalidArgumentException if no node matches the supplied identifier
*/
public function getNode($id)
{

View File

@ -636,7 +636,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
* @param string $id The service identifier
* @param Definition $definition A Definition instance
*
* @throws BadMethodCallException
* @throws BadMethodCallException When this ContainerBuilder is frozen
*
* @api
*/
@ -719,6 +719,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
*
* @return object The service described by the service definition
*
* @throws RuntimeException When factory specification is incomplete or scope is inactive
* @throws InvalidArgumentException When configure callable is not callable
*/
private function createService(Definition $definition, $id)

View File

@ -292,7 +292,7 @@ class XmlFileLoader extends FileLoader
* @param string $file
*
* @throws RuntimeException When extension references a non-existent XSD file
* @throws InvalidArgumentException When xml doesn't validate its xsd schema
* @throws InvalidArgumentException When XML doesn't validate its XSD schema
*/
private function validateSchema(\DOMDocument $dom, $file)
{