Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging v2.13 into v3.0-dev #677

Merged
merged 58 commits into from
May 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
3d26acc
SapiEmitter now emits streaming (#602)
roxblnfk Mar 24, 2022
b47a928
Support for generators in controllers (#625)
roxblnfk Mar 30, 2022
1d6cd78
Marking deprecated code (#641)
msmakouz Apr 1, 2022
58249fd
Update psr/log versions
roxblnfk Apr 6, 2022
d6e8f10
Update CHANGELOG.md
roxblnfk Apr 6, 2022
f498cd7
Add `master` updating to subspliting events
roxblnfk Apr 6, 2022
d04b572
Fix root alias
roxblnfk Apr 6, 2022
fdae844
Merge pull request #654 from spiral/hotfix/update-psr-log
butschster Apr 7, 2022
25d9810
Using `self.version` instead of `*` (#653)
msmakouz Apr 7, 2022
74a8e93
Prepare to release
roxblnfk Apr 7, 2022
24e998c
open 2.13.x-dev
butschster Apr 7, 2022
56ea172
Adds broadcasting component
butschster Apr 13, 2022
fe6e502
Apply fixes from StyleCI
StyleCIBot Apr 13, 2022
43466c3
Adds unit tests for broadcasting component
butschster Apr 14, 2022
d7ac172
Merge remote-tracking branch 'origin/feature/broadcasting-2.0' into f…
butschster Apr 14, 2022
2ad6ef3
Covers broadcasting bootloaders with tests
butschster Apr 14, 2022
4aec429
Adds broadcasting component into monorepo splitter
butschster Apr 14, 2022
1931271
Add chunkSize to the HTTP config
msmakouz Apr 14, 2022
67d5c89
Fix CS
msmakouz Apr 14, 2022
6952e34
Move setting chunkSize to the bootloader
msmakouz Apr 14, 2022
498cec9
Add setAccessible
msmakouz Apr 14, 2022
63765a8
Remove unused import
msmakouz Apr 14, 2022
8d96e22
ChunkSize greater than 0
msmakouz Apr 15, 2022
e5040f4
Add support 0 chunkSize
msmakouz Apr 15, 2022
3733780
Add Queueable attribute
msmakouz Apr 18, 2022
b7924d4
Update Changelog
msmakouz Apr 18, 2022
ee8e17e
- Adds support for GuardInterface in AuthorizationMiddleware.
butschster Apr 19, 2022
60d2ef0
Merge pull request #661 from msmakouz/feature/chunk-size
butschster Apr 19, 2022
f6233c4
- Fixes tests for BroadcastingBootloader.
butschster Apr 19, 2022
e78f3fc
Gets rid of GuardInterface container binding.
butschster Apr 19, 2022
cf7de06
Fix
butschster Apr 19, 2022
c1f6ea7
Remove setReader, add checking interface
msmakouz Apr 19, 2022
e11af61
Merge remote-tracking branch 'origin/master' into feature/queueable
msmakouz Apr 19, 2022
11c56d7
Merge pull request #660 from spiral/feature/broadcasting-2.0
butschster Apr 20, 2022
3008958
Adds topics registry
butschster Apr 20, 2022
7a080f2
Merge pull request #665 from spiral/feature/broadcasting-topics-locator
butschster Apr 20, 2022
1d6c3f2
Improves broadcasting guard.
butschster Apr 21, 2022
6ad4106
Add SAPI deprecations (#669)
msmakouz Apr 25, 2022
aea3547
Add QueueableDetector class instead of trait
msmakouz Apr 27, 2022
f9db50c
Update Changelog
msmakouz Apr 27, 2022
3b67b50
Adds DTO for guard authorization status
butschster Apr 28, 2022
3169095
Adds unit tests for AuthorizationStatus DTO
butschster Apr 28, 2022
ecc75e1
Adds php docs
butschster Apr 28, 2022
1c62f08
Make dumper deprecated
roxblnfk Apr 28, 2022
4a5b141
Updates changelog
butschster Apr 28, 2022
3c9217f
Merge pull request #668 from spiral/feature/broadcasting-guard
butschster Apr 28, 2022
56683e3
Merge branch 'master' into feature/queueable
butschster Apr 28, 2022
59c7c40
Merge pull request #662 from msmakouz/feature/queueable
butschster Apr 28, 2022
8254796
Fix psalm version
roxblnfk Apr 28, 2022
f0fcd67
Merge pull request #673 from spiral/deprecate-dumper
butschster Apr 28, 2022
bf60514
Fixes vimeo/psalm version
butschster Apr 28, 2022
d708cb2
open 2.14.x-dev
butschster Apr 28, 2022
453b45d
Update CHANGELOG.md
butschster Apr 28, 2022
c695086
Fixes master alias
butschster Apr 28, 2022
ed9c7c2
Merge remote-tracking branch 'origin/master' into maintenance/merging…
msmakouz Apr 29, 2022
90d15b0
Delete empty files
msmakouz Apr 29, 2022
9061bd0
Delete files after merging
msmakouz Apr 29, 2022
22a9d7e
Fix Psalm version
msmakouz Apr 29, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/split_monorepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
split_repository: 'auth-http'
- local_path: 'Boot'
split_repository: 'boot'
- local_path: 'Broadcasting'
split_repository: 'broadcasting'
- local_path: 'Cache'
split_repository: 'cache'
- local_path: 'Config'
Expand Down
35 changes: 28 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Please, use standalone package `spiral/data-grid-bridge` instead.
- Component `spiral/data-grid` is removed from `spiral/framework` repository.
Please, use standalone package `spiral/data-grid` instead.
- `Spiral\Boot\ExceptionHandler` has been eliminated. New `Spiral\Exceptions\ExceptionHandler` with interfaces
- `Spiral\Boot\ExceptionHandler` has been eliminated. New `Spiral\Exceptions\ExceptionHandler` with interfaces
`Spiral\Exceptions\ExceptionHandlerInterface`, `Spiral\Exceptions\ExceptionRendererInterface` and
`Spiral\Exceptions\ExceptionReporterInterface` have been added.
- Added `ExceptionHandlerBootloader` that adds renderers and reporters in the `ExceptionHandler`.
Expand Down Expand Up @@ -39,7 +39,7 @@
- Removed `Spiral\Http\SapiDispatcher` and `Spiral\Http\Emitter\SapiEmitter`. Please, use package `spiral/sapi-bridge` instead.
- Bootloader `Spiral\Bootloader\Http\DiactorosBootloader` moved to the `Spiral\Http\Bootloader\DiactorosBootloader`.
- Classes `Spiral\Http\Diactoros\ResponseFactory`, `Spiral\Http\Diactoros\ServerRequestFactory`, `Spiral\Http\Diactoros\StreamFactory`,
`Spiral\Http\Diactoros\UploadedFileFactory`, `Spiral\Http\Diactoros\UriFactory`
`Spiral\Http\Diactoros\UploadedFileFactory`, `Spiral\Http\Diactoros\UriFactory`
is removed and replaced to a `Nyholm\Psr7\Factory\Psr17Factory` class from `nyholm/psr7` package in `DiactorosBootloader`.
- [spiral/exceptions] All handlers have been renamed into renderers. `HandlerInterface` has been deleted.
- [spiral/exceptions] Added `Spiral\Exceptions\Verbosity` enum.
Expand Down Expand Up @@ -111,7 +111,7 @@
- [spiral/boot] `Spiral\Boot\AbstractKernel` constructor is protected now.
- [spiral/boot] Added return type `mixed` to the method `loadData`,
added return type `void` and `mixed` parameter type of `$data` to the method `saveData` in `Spiral\Boot\MemoryInterface` interface.
- [spiral/boot] In `Bootloaders`, the name of the method has been changed from `boot` to `init`.
- [spiral/boot] In `Bootloaders`, the name of the method has been changed from `boot` to `init`.
In the code of custom Bootloaders, need to change the name of the method.
- [spiral/console] Added return type `void` to the method `writeHeader`, added return type `void` to the method `execute`,
method `whiteFooter` renamed to `writeFooter`, added return type `void` to the method `writeFooter`
Expand Down Expand Up @@ -142,7 +142,7 @@
config `Spiral\Bootloader\Storage\StorageConfig` moved to the `Spiral\Storage\Config\StorageConfig`.
- [spiral/validation] Bootloader `Spiral\Bootloader\Security\ValidationBootloader` moved to the `Spiral\Validation\Bootloader\ValidationBootloader`.
- [spiral/views] Bootloader `Spiral\Bootloader\Views\ViewsBootloader` moved to the `Spiral\Views\Bootloader\ViewsBootloader`.
- [spiral/boot] By default, overwriting of environment variable values is disabled, the default value for `$overwrite`
- [spiral/boot] By default, overwriting of environment variable values is disabled, the default value for `$overwrite`
changed from `true` to `false` in the `Spiral\Boot\Environment`.
- **Medium Impact Changes**
- A minimal version of `PHP` increased to `^8.1`
Expand All @@ -156,11 +156,32 @@
- [spiral/debug] Added `Spiral\Debug\StateConsumerInterface`.
- [spiral/boot] Added new `boot` method in `Bootloaders`. It will be executed after the `init` method is executed in all `Bootloaders`.
The old `boot` method has been renamed to `init`. See **High Impact Changes** section.
- [spiral/boot] Added automatic booting of `Bootloaders` requested in the `init` and `boot` methods.
- [spiral/boot] Added automatic booting of `Bootloaders` requested in the `init` and `boot` methods.
They no longer need to be specified explicitly in `DEPENDENCIES` property or in `defineDependencies` method.
- [spiral/monolog-bridge] Added the ability to configure the default channel using the configuration file or
- [spiral/monolog-bridge] Added the ability to configure the default channel using the configuration file or
environment variable `MONOLOG_DEFAULT_CHANNEL`.


## v2.14.0 - Unreleased
- **High Impact Changes**
- **Medium Impact Changes**
- **Low Impact Changes**
- **Other Features**
- **Bug Fixes**

## v2.13.0 - 2022-04-28
- **Medium Impact Changes**
- Dispatcher `Spiral\Http\SapiDispatcher` is deprecated. Will be moved to `spiral/sapi-bridge` and removed in v3.0
- Classes `Spiral\Http\Emitter\SapiEmitter`, `Spiral\Http\Exception\EmitterException`, `Spiral\Http\EmitterInterface`,
`Spiral\Http\SapiRequestFactory` is deprecated. Will be removed in version v3.0.
After the release of v3.0, must use the package `spiral/sapi-bridge` for SAPI functionality.
- The `dumper` component is deprecated and will be removed in v3.0
- **Other Features**
- [spiral/http] Added parameter `chunkSize` in the `http` configuration file.
- [spiral/queue] Added attribute `Queueable` to mark classes that can be queued.
Added `Spiral\Queue\QueueableDetector` class to easily check if an object should be queued or not and get the queue
from an attribute or getQueue method on the object.
- [spiral/broadcasting] New component with common interfaces (RR2.0 support)

## v2.12.0 - 2022-04-07
- **Medium Impact Changes**
- Bootloaders `Spiral\Bootloader\Broadcast\BroadcastBootloader`, `Spiral\Bootloader\Http\WebsocketsBootloader`
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"src/AuthHttp/src"
],
"Spiral\\Boot\\": "src/Boot/src",
"Spiral\\Broadcasting\\": "src/Broadcasting/src",
"Spiral\\Cache\\": "src/Cache/src",
"Spiral\\Config\\": "src/Config/src",
"Spiral\\Console\\": "src/Console/src",
Expand Down Expand Up @@ -133,7 +134,7 @@
"spiral/code-style": "^1.0",
"symfony/var-dumper": "^5.2|^6.0",
"symplify/monorepo-builder": "^10.0",
"vimeo/psalm": "^4.22"
"vimeo/psalm": "4.21"
},
"autoload-dev": {
"psr-4": {
Expand All @@ -143,6 +144,7 @@
"src/Auth/tests",
"src/AuthHttp/tests"
],
"Spiral\\Tests\\Broadcasting\\": "src/Broadcasting/tests",
"Spiral\\Tests\\Boot\\": "src/Boot/tests",
"Spiral\\Tests\\Cache\\": "src/Cache/tests",
"Spiral\\Tests\\Config\\": "src/Config/tests",
Expand Down Expand Up @@ -200,6 +202,7 @@
"spiral/auth": "self.version",
"spiral/auth-http": "self.version",
"spiral/boot": "self.version",
"spiral/broadcasting": "self.version",
"spiral/cache": "self.version",
"spiral/config": "self.version",
"spiral/console": "self.version",
Expand Down
2 changes: 1 addition & 1 deletion monorepo-builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
'spiral/code-style' => '^1.0',
'laminas/laminas-hydrator' => '^3.0|^4.0',
'symplify/monorepo-builder' => '^10.0',
'vimeo/psalm' => '^4.22',
'vimeo/psalm' => '^4.21',
],
]);

Expand Down
10 changes: 5 additions & 5 deletions src/AnnotatedRoutes/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
],
"require": {
"php": ">=8.1",
"spiral/attributes": "^2.13",
"spiral/router": "^2.13"
"spiral/attributes": "^2.14",
"spiral/router": "^2.14"
},
"autoload": {
"psr-4": {
Expand All @@ -28,8 +28,8 @@
"phpunit/phpunit": "^9.5.5",
"mockery/mockery": "^1.5",
"laminas/laminas-diactoros": "^2.8",
"spiral/boot": "^2.13",
"spiral/console": "^2.13"
"spiral/boot": "^2.14",
"spiral/console": "^2.14"
},
"autoload-dev": {
"psr-4": {
Expand All @@ -38,7 +38,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.13.x-dev"
"dev-master": "2.14.x-dev"
}
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion src/Attributes/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.13.x-dev"
"dev-master": "2.14.x-dev"
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/Auth/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.13.x-dev"
"dev-master": "2.14.x-dev"
}
},
"config": {
Expand Down
10 changes: 5 additions & 5 deletions src/AuthHttp/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"require": {
"php": ">=8.1",
"ext-json": "*",
"spiral/auth": "^2.13",
"spiral/auth": "^2.14",
"psr/http-message": "^1.0",
"psr/http-server-middleware": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5.5",
"spiral/cookies": "^2.13",
"spiral/http": "^2.13",
"spiral/debug": "^2.13",
"spiral/cookies": "^2.14",
"spiral/http": "^2.14",
"spiral/debug": "^2.14",
"laminas/laminas-diactoros": "^2.8"
},
"autoload": {
Expand All @@ -39,7 +39,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.13.x-dev"
"dev-master": "2.14.x-dev"
}
},
"config": {
Expand Down
12 changes: 6 additions & 6 deletions src/Boot/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
],
"require": {
"php": ">=8.1",
"spiral/core": "^2.13",
"spiral/files": "^2.13",
"spiral/config": "^2.13",
"spiral/debug": "^2.13",
"spiral/exceptions": "^2.13"
"spiral/core": "^2.14",
"spiral/files": "^2.14",
"spiral/config": "^2.14",
"spiral/debug": "^2.14",
"spiral/exceptions": "^2.14"
},
"require-dev": {
"phpunit/phpunit": "^9.5.5",
Expand All @@ -41,7 +41,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.13.x-dev"
"dev-master": "2.14.x-dev"
}
},
"config": {
Expand Down
4 changes: 2 additions & 2 deletions src/Bridge/Dotenv/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"require": {
"php": ">=8.1",
"spiral/boot": "^2.13",
"spiral/boot": "^2.14",
"vlucas/phpdotenv": "^5.4"
},
"require-dev": {
Expand All @@ -34,7 +34,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.13.x-dev"
"dev-master": "2.14.x-dev"
}
},
"config": {
Expand Down
4 changes: 2 additions & 2 deletions src/Bridge/Monolog/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"require": {
"php": ">=8.1",
"spiral/boot": "^2.13",
"spiral/boot": "^2.14",
"monolog/monolog": "^2.2"
},
"require-dev": {
Expand All @@ -35,7 +35,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.13.x-dev"
"dev-master": "2.14.x-dev"
}
},
"config": {
Expand Down
20 changes: 10 additions & 10 deletions src/Bridge/Stempler/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
],
"require": {
"php": ">=8.1",
"spiral/stempler": "^2.13",
"spiral/boot": "^2.13",
"spiral/files": "^2.13",
"spiral/config": "^2.13",
"spiral/translator": "^2.13",
"spiral/router": "^2.13",
"spiral/views": "^2.13",
"spiral/core": "^2.13"
"spiral/stempler": "^2.14",
"spiral/boot": "^2.14",
"spiral/files": "^2.14",
"spiral/config": "^2.14",
"spiral/translator": "^2.14",
"spiral/router": "^2.14",
"spiral/views": "^2.14",
"spiral/core": "^2.14"
},
"require-dev": {
"phpunit/phpunit": "^9.5.5",
"mockery/mockery": "^1.5",
"spiral/dumper": "^2.13"
"spiral/dumper": "^2.14"
},
"autoload": {
"psr-4": {
Expand All @@ -42,7 +42,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.13.x-dev"
"dev-master": "2.14.x-dev"
}
},
"config": {
Expand Down
7 changes: 7 additions & 0 deletions src/Broadcasting/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/.github export-ignore
/tests export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
phpunit.xml export-ignore
19 changes: 19 additions & 0 deletions src/Broadcasting/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# IDEA
.idea/
*.iml

# Composer
vendor/
composer.lock
composer.phar

# OS
.DS_Store
Thumbs.db

# Other
.phpunit.result.cache
.php_cs.cache
clover.xml
.env
builds
21 changes: 21 additions & 0 deletions src/Broadcasting/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2020 Spiral Scout

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
5 changes: 5 additions & 0 deletions src/Broadcasting/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Spiral: Common Broadcasting Interfaces

[![Latest Stable Version](https://poser.pugx.org/spiral/broadcasting/version)](https://packagist.org/packages/spiral/broadcasting)
[![Build Status](https://travis-ci.org/spiral/broadcasting.svg?branch=master)](https://travis-ci.org/spiral/broadcasting)
[![Codecov](https://codecov.io/gh/spiral/broadcasting/branch/master/graph/badge.svg)](https://codecov.io/gh/spiral/broadcasting/)
Loading