Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit f41e074

Browse files
authored
Merge pull request #76 from katmsft/cors
0.14.0 Pull request.
2 parents 46b41ca + ecf69e6 commit f41e074

File tree

202 files changed

+5484
-2314
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+5484
-2314
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ test-file-*
88
/vendor/*
99
/output/*
1010
/build/*
11+
/doc/*
1112

1213

1314

BreakingChanges.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
Tracking Breaking changes in 0.14.0
2+
3+
* Restructured the classes based on their intended functionality and visiblity. The changes includes:
4+
- `MicrosoftAzure\Storage\Common\Internal\InvalidArgumentTypeException` was moved to `MicrosoftAzure\Storage\Common\Exceptions\InvalidArgumentTypeException`
5+
- `MicrosoftAzure\Storage\Common\ServiceException` was moved to `MicrosoftAzure\Storage\Exceptions\ServiceException`
6+
- `MicrosoftAzure\Storage\Common\Internal\HttpFormatter` was moved to `MicrosoftAzure\Storage\Common\Internal\Http\HttpFormatter`
7+
- `MicrosoftAzure\Storage\Common\ServiceOptionsBase` was moved to `MicrosoftAzure\Storage\Common\Internal\ServiceOptionsBase`
8+
- `MicrosoftAzure\Storage\Common\Internal\Logger` was moved to `MicrosoftAzure\Storage\Common\Logger`
9+
- `MicrosoftAzure\Storage\Common\Internal\Middlewares\HistoryMiddleware` was moved to `MicrosoftAzure\Storage\Common\Middlewares\HistoryMiddleware`
10+
- `MicrosoftAzure\Storage\Common\Internal\IMiddleware` was moved to `MicrosoftAzure\Storage\Common\Middlewares\IMiddleware`
11+
- `MicrosoftAzure\Storage\Common\Internal\Middlewares\MiddlewareBase` was moved to `MicrosoftAzure\Storage\Common\Middlewares\MiddlewareBase`
12+
- `MicrosoftAzure\Storage\Common\Internal\RetryMiddlewareFactory` was moved to `MicrosoftAzure\Storage\Common\Middlewares\RetryMiddlewareFactory`
13+
114
Tracking Breaking changes in 0.13.0
215

316
* Modified the setters of most classes that represent API call result from `public` to `protected` to avoid unwanted corruption of SDK constructed data. If the user is using the setters prior to the release there could be a breaking change.

ChangeLog.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
1+
2017.04 - version 0.14.0
2+
3+
ALL
4+
* Improved the documentation.
5+
* Restructured the classes based on their intended functionality and visiblity. The changes includes:
6+
- `MicrosoftAzure\Storage\Common\Internal\InvalidArgumentTypeException` was moved to `MicrosoftAzure\Storage\Common\Exceptions\InvalidArgumentTypeException`
7+
- `MicrosoftAzure\Storage\Common\ServiceException` was moved to `MicrosoftAzure\Storage\Exceptions\ServiceException`
8+
- `MicrosoftAzure\Storage\Common\Internal\HttpFormatter` was moved to `MicrosoftAzure\Storage\Common\Internal\Http\HttpFormatter`
9+
- `MicrosoftAzure\Storage\Common\ServiceOptionsBase` was moved to `MicrosoftAzure\Storage\Common\Internal\ServiceOptionsBase`
10+
- `MicrosoftAzure\Storage\Common\Internal\Logger` was moved to `MicrosoftAzure\Storage\Common\Logger`
11+
- `MicrosoftAzure\Storage\Common\Internal\Middlewares\HistoryMiddleware` was moved to `MicrosoftAzure\Storage\Common\Middlewares\HistoryMiddleware`
12+
- `MicrosoftAzure\Storage\Common\Internal\IMiddleware` was moved to `MicrosoftAzure\Storage\Common\Middlewares\IMiddleware`
13+
- `MicrosoftAzure\Storage\Common\Internal\Middlewares\MiddlewareBase` was moved to `MicrosoftAzure\Storage\Common\Middlewares\MiddlewareBase`
14+
- `MicrosoftAzure\Storage\Common\Internal\RetryMiddlewareFactory` was moved to `MicrosoftAzure\Storage\Common\Middlewares\RetryMiddlewareFactory`
15+
* Added Cross-Origin Resource Sharing (CORS) support. Now setting service properties can set CORS rules at the same time.
16+
* Added support for account-level Shared Access Signature generation.
17+
* Resolved an error reported from some IDEs about the phpcs.xml.
18+
* Fixed multiple test issues.
19+
20+
Blob
21+
* Added API `createPageBlobFromContent` to support creating page blob directly from contents which includes local file, stream, etc...
22+
* Added support for append blob.
23+
* Added support for Container ACL.
24+
25+
Queue
26+
* Added support for Queue ACL.
27+
28+
Table
29+
* Added support for Table ACL.
30+
* Fixed an issue that user could not set entity type to be double and integer as a value for PHP 7
31+
132
2017.02 - version 0.13.0
233

334
ALL

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ This project provides a set of PHP client libraries that make it easy to access
44

55
> **Note**
66
>
7-
> If you are looking for the Service Bus, Service Runtime, Service Management or Media Services libraries, please visit https://github.com/Azure/azure-sdk-for-php.
7+
> * If you are looking for the Service Bus, Service Runtime, Service Management or Media Services libraries, please visit https://github.com/Azure/azure-sdk-for-php.
8+
> * If you need big file or 64-bit integer support, please install PHP 7 64-bit version.
89
910
# Features
1011

build.xml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
<property name="phpdox" value="phpdox.bat"/>
88
<property name="phploc" value="phploc.bat"/>
99
<property name="phpmd" value="phpmd.bat"/>
10-
<property name="phpunit" value="phpunit.bat"/> -->
10+
<property name="phpunit" value="phpunit.bat"/>
11+
<property name="phpdoc" value="phpdoc.bat"/> -->
1112

1213
<!-- Use this when the tools are located as PHARs in ${basedir}/build/tools
1314
<property name="pdepend" value="${basedir}/build/tools/pdepend.phar"/>
@@ -16,7 +17,8 @@
1617
<property name="phpdox" value="${basedir}/build/tools/phpdox.phar"/>
1718
<property name="phploc" value="${basedir}/build/tools/phploc.phar"/>
1819
<property name="phpmd" value="${basedir}/build/tools/phpmd.phar"/>
19-
<property name="phpunit" value="${basedir}/build/tools/phpunit.phar"/> -->
20+
<property name="phpunit" value="${basedir}/build/tools/phpunit.phar"/>
21+
<property name="phpdoc" value="${basedir}/build/tools/phpDocumentator.phar"/> -->
2022

2123
<!-- Use this when the tools are managed by Composer in ${basedir}/vendor/bin -->
2224
<property name="pdepend" value="${basedir}/vendor/bin/pdepend.bat"/>
@@ -25,7 +27,8 @@
2527
<property name="phpdox" value="${basedir}/vendor/bin/phpdox.bat"/>
2628
<property name="phploc" value="${basedir}/vendor/bin/phploc.bat"/>
2729
<property name="phpmd" value="${basedir}/vendor/bin/phpmd.bat"/>
28-
<property name="phpunit" value="${basedir}/vendor/bin/phpunit.bat"/>
30+
<property name="phpunit" value="${basedir}/vendor/bin/phpunit.bat"/>
31+
<property name="phpdoc" value="${basedir}/vendor/bin/phpdoc.bat"/>
2932

3033
<target name="full-build"
3134
depends="prepare,static-analysis,phpunit,phpdox,-check-failure"
@@ -299,4 +302,17 @@
299302
</condition>
300303
</fail>
301304
</target>
305+
306+
<target name="doc" description="Generate project documentation using phpDocumentator">
307+
<exec executable="${phpdoc}" taskname="phpdoc">
308+
<arg value="-t" />
309+
<arg value=".\doc" />
310+
<arg value="-d" />
311+
<arg value=".\src" />
312+
<arg value="--visibility" />
313+
<arg value="public,protected" />
314+
<arg value="--template" />
315+
<arg value="zend" />
316+
</exec>
317+
</target>
302318
</project>

build/phpcs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
<rule ref="Squiz.PHP.Eval.Discouraged"/>
3535

36-
<rule ref="Zend.Files.ClosingTag.NotAllowed">
36+
<rule ref="Zend.Files.ClosingTag.NotAllowed/">
3737

3838
<rule ref="PEAR"/>
3939

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"squizlabs/php_codesniffer": "2.*",
2222
"phploc/phploc": "~2.1",
2323
"phpmd/phpmd": "@stable",
24-
"theseer/phpdox": "~0.8"
24+
"theseer/phpdox": "~0.8",
25+
"phpdocumentor/phpdocumentor": "dev-master"
2526
},
2627
"autoload": {
2728
"psr-4": {

samples/BlobSamples.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
use MicrosoftAzure\Storage\Blob\Models\PublicAccessType;
2929
use MicrosoftAzure\Storage\Blob\Models\ListContainersResult;
3030
use MicrosoftAzure\Storage\Common\ServicesBuilder;
31-
use MicrosoftAzure\Storage\Common\ServiceException;
32-
use MicrosoftAzure\Storage\Common\Internal\InvalidArgumentTypeException;
31+
use MicrosoftAzure\Storage\Common\Exceptions\ServiceException;
32+
use MicrosoftAzure\Storage\Common\Exceptions\InvalidArgumentTypeException;
3333

3434
$connectionString = 'DefaultEndpointsProtocol=https;AccountName=<yourAccount>;AccountKey=<yourKey>';
3535
$blobClient = ServicesBuilder::getInstance()->createBlobService($connectionString);

samples/QueueSamples.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
require_once "../vendor/autoload.php";
2525

2626
use MicrosoftAzure\Storage\Common\ServicesBuilder;
27-
use MicrosoftAzure\Storage\Common\ServiceException;
27+
use MicrosoftAzure\Storage\Common\Exceptions\ServiceException;
2828
use MicrosoftAzure\Storage\Queue\Models\CreateQueueOptions;
2929
use MicrosoftAzure\Storage\Queue\Models\PeekMessagesOptions;
3030

samples/TableSamples.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
require_once "../vendor/autoload.php";
2525

2626
use MicrosoftAzure\Storage\Common\ServicesBuilder;
27-
use MicrosoftAzure\Storage\Common\ServiceException;
27+
use MicrosoftAzure\Storage\Common\Exceptions\ServiceException;
2828
use MicrosoftAzure\Storage\Table\Models\BatchOperations;
2929
use MicrosoftAzure\Storage\Table\Models\Entity;
3030
use MicrosoftAzure\Storage\Table\Models\EdmType;
@@ -38,7 +38,7 @@
3838
// To add an entity to a table, create a new Entity object and pass it to TableRestProxy->insertEntity.
3939
// Note that when you create an entity you must specify a PartitionKey and RowKey. These are the unique
4040
// identifiers for an entity and are values that can be queried much faster than other entity properties.
41-
// The system uses PartitionKey to automatically distribute the table¡¯s entities over many storage nodes.
41+
// The system uses PartitionKey to automatically distribute the table's entities over many storage nodes.
4242
insertEntitySample($tableClient);
4343

4444
// To add mutiple entities with one call, create a BatchOperations and pass it to TableRestProxy->batch.

0 commit comments

Comments
 (0)