Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 1 addition & 1 deletion .github/workflows/package-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: Find packages
id: find-packages
run: echo "::set-output name=packages::$(php .github/get-modified-packages.php $(find src/Symfony -mindepth 2 -type f -name composer.json -printf '%h\n' | jq -R -s -c 'split("\n")[:-1]') $(git diff --name-only origin/${{ github.base_ref }} HEAD | grep src/ | jq -R -s -c 'split("\n")[:-1]'))"
run: echo "::set-output name=packages::$(php .github/get-modified-packages.php $(find src/Symfony -mindepth 2 -maxdepth 6 -type f -name composer.json -printf '%h\n' | jq -R -s -c 'split("\n")[:-1]') $(git diff --name-only origin/${{ github.base_ref }} HEAD | grep src/ | jq -R -s -c 'split("\n")[:-1]'))"

- name: Verify meta files are correct
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
echo SYMFONY_DEPRECATIONS_HELPER=weak >> $GITHUB_ENV
cp composer.json composer.json.orig
echo -e '{\n"require":{'"$(grep phpunit-bridge composer.json)"'"php":"*"},"minimum-stability":"dev"}' > composer.json
php .github/build-packages.php HEAD^ $SYMFONY_VERSION $(find src/Symfony -mindepth 2 -type f -name composer.json -printf '%h\n')
php .github/build-packages.php HEAD^ $SYMFONY_VERSION $(find src/Symfony -mindepth 2 -maxdepth 6 -type f -name composer.json -printf '%h\n')
mv composer.json composer.json.phpunit
mv composer.json.orig composer.json
fi
Expand Down
9 changes: 9 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,15 @@
{
"type": "path",
"url": "src/Symfony/Component/Runtime"
},
{
"type": "path",
"url": "src/Symfony/Component/Notifier/Bridge/Mercure/Tests/stella-maris-clock",
"options": {
"versions": {
"stella-maris/clock": "0.1.x-dev"
}
}
}
],
"minimum-stability": "dev"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
/**
* Copyright Andreas Heigl <andreas@heigl.org> and ClockInterfaceContributors

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.

*/

namespace StellaMaris\Clock;

use DateTimeImmutable;

interface ClockInterface
{
/**
* Return the current point in time as a DateTimeImmutable object
*/
public function now() : DateTimeImmutable;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "stella-maris/clock",
"description": "A local fork to workaround gitlab failing to serve the package reliably",
"homepage": "https://gitlab.com/stella-maris/clock",
"license": "MIT",
"authors": [
{
"name": "Andreas Heigl",
"role": "Maintainer"
}
],
"autoload": {
"psr-4": {
"StellaMaris\\Clock\\": ""
}
}
}
11 changes: 11 additions & 0 deletions src/Symfony/Component/Notifier/Bridge/Mercure/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,16 @@
"/Tests/"
]
},
"repositories": [
{
"type": "path",
"url": "Tests/stella-maris-clock",
"options": {
"versions": {
"stella-maris/clock": "0.1.x-dev"
}
}
}
],
"minimum-stability": "dev"
}