azure-storage-common\src\Common\CloudConfigurationManager.php
You may obtain a copy of the License at https://github.com/azure/azure-storage-php/LICENSE
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
PHP version 5
- Author
- Azure Storage PHP SDK
- Category
- Microsoft
- Copyright
- 2016 Microsoft Corporation
- License
- https://github.com/azure/azure-storage-php/LICENSE
- Link
- https://github.com/azure/azure-storage-php
- Package
- MicrosoftAzure\Storage\Common
\MicrosoftAzure\Storage\Common\CloudConfigurationManager
- Author
- Azure Storage PHP SDK
- Category
- Microsoft
- Copyright
- 2016 Microsoft Corporation
- License
- https://github.com/azure/azure-storage-php/LICENSE
- Link
- https://github.com/azure/azure-storage-php
Methods
getConnectionString(string $key) : string
Gets a connection string from all available sources.
Name | Type | Description |
---|---|---|
$key | string | The connection string key name. |
Type | Description |
---|---|
string | If the key does not exist return null. |
registerSource(string $name, callable $provider = null, boolean $prepend = false) : void
Registers a new connection string source provider. If the source to get registered is a default source, only the name of the source is required.
Name | Type | Description |
---|---|---|
$name | string | The source name. |
$provider | callable | The source callback. |
$prepend | boolean | When true, the $provider is processed first when calling getConnectionString. When false (the default) the $provider is processed after the existing callbacks. |