mirror of
https://github.com/danog/amp.git
synced 2025-01-22 13:21:16 +01:00
Update namespacing to be compatible with what's actually used
This commit is contained in:
parent
3665df6e96
commit
a954f73d8e
12
lib/Loop.php
12
lib/Loop.php
@ -276,8 +276,11 @@ final class Loop {
|
||||
/**
|
||||
* Stores information in the loop bound registry.
|
||||
*
|
||||
* This can be used to store loop bound information. Stored information is package private. Packages MUST NOT
|
||||
* retrieve the stored state of other packages. Packages MUST use the following prefix for keys: `vendor.package.`
|
||||
* Stored information is package private. Packages MUST NOT retrieve the stored state of other packages. Packages
|
||||
* MUST use their namespace as prefix for keys. They may do so by using `SomeClass::class` as key.
|
||||
*
|
||||
* If packages want to expose loop bound state to consumers other than the package, they SHOULD provide a dedicated
|
||||
* interface for that purpose instead of sharing the storage key.
|
||||
*
|
||||
* @param string $key The namespaced storage key.
|
||||
* @param mixed $value The value to be stored.
|
||||
@ -292,7 +295,10 @@ final class Loop {
|
||||
* Gets information stored bound to the loop.
|
||||
*
|
||||
* Stored information is package private. Packages MUST NOT retrieve the stored state of other packages. Packages
|
||||
* MUST use the following prefix for keys: `vendor.package.`
|
||||
* MUST use their namespace as prefix for keys. They may do so by using `SomeClass::class` as key.
|
||||
*
|
||||
* If packages want to expose loop bound state to consumers other than the package, they SHOULD provide a dedicated
|
||||
* interface for that purpose instead of sharing the storage key.
|
||||
*
|
||||
* @param string $key The namespaced storage key.
|
||||
*
|
||||
|
@ -499,8 +499,11 @@ abstract class Driver {
|
||||
/**
|
||||
* Stores information in the loop bound registry.
|
||||
*
|
||||
* This can be used to store loop bound information. Stored information is package private. Packages MUST NOT
|
||||
* retrieve the stored state of other packages. Packages MUST use the following prefix for keys: `vendor.package.`
|
||||
* Stored information is package private. Packages MUST NOT retrieve the stored state of other packages. Packages
|
||||
* MUST use their namespace as prefix for keys. They may do so by using `SomeClass::class` as key.
|
||||
*
|
||||
* If packages want to expose loop bound state to consumers other than the package, they SHOULD provide a dedicated
|
||||
* interface for that purpose instead of sharing the storage key.
|
||||
*
|
||||
* @param string $key The namespaced storage key.
|
||||
* @param mixed $value The value to be stored.
|
||||
@ -519,7 +522,10 @@ abstract class Driver {
|
||||
* Gets information stored bound to the loop.
|
||||
*
|
||||
* Stored information is package private. Packages MUST NOT retrieve the stored state of other packages. Packages
|
||||
* MUST use the following prefix for keys: `vendor.package.`
|
||||
* MUST use their namespace as prefix for keys. They may do so by using `SomeClass::class` as key.
|
||||
*
|
||||
* If packages want to expose loop bound state to consumers other than the package, they SHOULD provide a dedicated
|
||||
* interface for that purpose instead of sharing the storage key.
|
||||
*
|
||||
* @param string $key The namespaced storage key.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user