Skip to content

Commit d6059bb

Browse files
authored
[9.x] Add before resolving callbacks to contract (#35661)
* Add beforeResolving signature to container contract * Make docblock consistent
1 parent 0bd9b58 commit d6059bb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Illuminate/Contracts/Container/Container.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,15 @@ public function call($callback, array $parameters = [], $defaultMethod = null);
163163
*/
164164
public function resolved($abstract);
165165

166+
/**
167+
* Register a new before resolving callback.
168+
*
169+
* @param \Closure|string $abstract
170+
* @param \Closure|null $callback
171+
* @return void
172+
*/
173+
public function beforeResolving($abstract, Closure $callback = null);
174+
166175
/**
167176
* Register a new resolving callback.
168177
*

0 commit comments

Comments
 (0)