-
Notifications
You must be signed in to change notification settings - Fork 32
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
Work in progress #131
Merged
Merged
Work in progress #131
Changes from 25 commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
5db6b13
Work in progress
eldadfux 90cd4e6
Fixed method mixup
eldadfux b263f10
Tests...
eldadfux 654a917
Fixed test
eldadfux 241aebf
Fixed a few more tests
eldadfux 4351e83
Update benchmark
eldadfux f5abb5f
Updated benchmark
eldadfux 590eb6f
Deprecated swoole request and response getters
eldadfux 6359661
Improved tests
eldadfux 93b8568
Fixed tests
eldadfux dc646e2
tests
eldadfux e268ec3
Fixed format
eldadfux 1daba1c
Fixed tests
eldadfux afc610e
Fixed code analysis
eldadfux 05bec61
Changed dependency method to inject
eldadfux bf05cca
Updated composer.lock
eldadfux 23829ef
Fixed test
eldadfux ea0cfc3
Cleanups
eldadfux 5a5fd25
Updated composer
eldadfux b76d415
Added more tests
eldadfux 0bfe44c
Deprecated request hooks
eldadfux cde62b8
Test public swoole
eldadfux 524f5d4
Updated lock file
eldadfux 5434c04
Updated tests
eldadfux 1221d45
Updated tests
eldadfux 995dacb
Added test logs
eldadfux bb1421a
Removed logs
eldadfux ac7940b
Added DBPool test
eldadfux 08e70ee
Test
eldadfux efb7331
Isolated server start context
eldadfux 22e634e
Run event in coroutine
eldadfux b303e29
Fixed typo
eldadfux 1d8ced9
Fixed callback
eldadfux aef4e9a
Fixed arg count
eldadfux d600ae2
Fixed bug with params
eldadfux 5905398
Always return Route, added not found test
eldadfux 9b0916f
Test base server
eldadfux 488706f
Update TESTING argument in Dockerfile.swoole
eldadfux 06a134c
Updated deps
eldadfux 1c1b5a3
Fixed format
eldadfux 6e9715f
Fixed format tests
eldadfux 62c2b5b
Fixed autolaoding
eldadfux e84ceae
Fixed inheritance
eldadfux 4c4e85e
Added methods for get and set query strings
eldadfux 395f876
Updated composer
eldadfux d4718c2
Merge branch 'feat-di-upgrade' into feat-base-servers
eldadfux b451694
Fixed format
eldadfux 848b2f5
Merge remote-tracking branch 'refs/remotes/origin/feat-base-servers' …
eldadfux b7494aa
Fixed codeQL
eldadfux f16451f
Fixed response type
eldadfux 787b884
Merge pull request #133 from utopia-php/feat-base-servers
eldadfux 7147637
Fixed error injection
eldadfux afed267
Merge pull request #134 from utopia-php/feat-base-servers
eldadfux aa9bec5
Fixed typo
eldadfux db782ce
Updated server header logic
eldadfux cc3341f
Updated composer
eldadfux d64cfc3
feat: adding `getRoutes` function
byawitz f54000a
feat: adding context and http
byawitz 8eda2d0
feat: adding list of routes
byawitz bf24745
feat: adding external execute for GraphQL
byawitz 65d4fb8
Implement rules for multiple validator
Meldiron 102c44b
Separate validators
Meldiron f60479f
PR review changes
Meldiron 6ae1f18
Fix tests
Meldiron ed89b19
Fix CI/CD
Meldiron 726540d
Typo
Meldiron e3bbca0
Merge pull request #136 from utopia-php/feat-multiple-validator-adapter
eldadfux 6d5c75a
feat: adding Coroutine server
byawitz 1397674
feat: adding Coroutine server
byawitz f4ce8a4
feat: adding Coroutine server
byawitz d72069f
feat: GraphQL injections and tests
byawitz 0688440
Merge branch 'refs/heads/master' into feat-di-upgrade
byawitz c27a91d
chore: merge and composer
byawitz f355e93
Feat: Adding multiple from version 0.33
byawitz 530334e
chore: updating packages
byawitz 2e14c32
fix: fixing test
byawitz ee50ec9
chore: cleanup
byawitz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "Listen for Xdebug", | ||
"type": "php", | ||
"request": "launch", | ||
"port": 9003, | ||
"pathMappings": { | ||
"/usr/src/code": "${workspaceRoot}" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
FROM composer:2.0 AS step0 | ||
|
||
|
||
ARG TESTING=true | ||
ARG DEBUG=true | ||
|
||
ENV TESTING=$TESTING | ||
ENV DEBUG=$DEBUG | ||
|
||
WORKDIR /usr/local/src/ | ||
|
||
|
@@ -13,17 +14,35 @@ RUN composer install --ignore-platform-reqs --optimize-autoloader \ | |
--no-plugins --no-scripts --prefer-dist \ | ||
`if [ "$TESTING" != "true" ]; then echo "--no-dev"; fi` | ||
|
||
FROM appwrite/base:0.4.3 as final | ||
FROM appwrite/base:0.9.0 as final | ||
|
||
ARG TESTING=true | ||
ARG DEBUG=true | ||
|
||
ENV TESTING=$TESTING | ||
ENV DEBUG=$DEBUG | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
RUN \ | ||
if [ "$DEBUG" == "true" ]; then \ | ||
apk add boost boost-dev; \ | ||
fi | ||
|
||
WORKDIR /usr/src/code | ||
|
||
COPY ./dev /usr/src/code/dev | ||
COPY ./src /usr/src/code/src | ||
COPY ./tests /usr/src/code/tests | ||
COPY ./phpunit.xml /usr/src/code/phpunit.xml | ||
COPY ./phpbench.json /usr/src/code/phpbench.json | ||
COPY --from=step0 /usr/local/src/vendor /usr/src/code/vendor | ||
|
||
# Enable Extensions | ||
RUN if [ "$DEBUG" == "true" ]; then cp /usr/src/code/dev/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini; fi | ||
RUN if [ "$DEBUG" = "false" ]; then rm -rf /usr/src/code/dev; fi | ||
RUN if [ "$DEBUG" = "false" ]; then rm -f /usr/local/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so; fi | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["php", "tests/e2e/server-swoole.php"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may be we should remove this file