[DependencyInjection] Fix up @throws documentation
This commit is contained in:
parent
123f514e06
commit
b7300d2e07
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user