-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement dependency resolution for services (#6484)
Co-authored-by: Pierre Gordon <[email protected]> Co-authored-by: Alain Schlesser <[email protected]>
- Loading branch information
1 parent
fa9f496
commit 8a018cb
Showing
14 changed files
with
375 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
/** | ||
* Interface HasRequirements. | ||
* | ||
* @package AmpProject\AmpWP | ||
*/ | ||
|
||
namespace AmpProject\AmpWP\Infrastructure; | ||
|
||
/** | ||
* Something that requires other services to be registered before it can be registered. | ||
* | ||
* A class marked as having requirements can return the list of services it requires | ||
* to be available before it can be registered. | ||
* | ||
* @since 2.2 | ||
* @internal | ||
*/ | ||
interface HasRequirements { | ||
|
||
/** | ||
* Get the list of service IDs required for this service to be registered. | ||
* | ||
* @return string[] List of required services. | ||
*/ | ||
public static function get_requirements(); | ||
} |
Oops, something went wrong.