Skip to content

Commit

Permalink
graphql-bundle classis are now dumped so they can use composer autolo…
Browse files Browse the repository at this point in the history
…ading
  • Loading branch information
TomasLudvik committed Oct 2, 2023
1 parent e9ae388 commit 0e64af9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"App\\": [
"src/"
],
"Overblog\\GraphQLBundle\\__DEFINITIONS__\\": "var/overblogCompiledClasses",
"Sniffer\\": [
"sniffer/"
]
Expand Down
1 change: 1 addition & 0 deletions app/config/directories.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ parameters:
- "%shopsys.product_files_dir%"
internal_directories:
- '%kernel.cache_dir%/localeFileUploads'
- '%kernel.project_dir%/var/overblogCompiledClasses'
4 changes: 4 additions & 0 deletions app/config/packages/overblog_graphql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ overblog_graphql:
class: App\FrontendApi\Component\Arguments\PaginatorArgumentsBuilder
- alias: "BlogArticlePaginatorArgumentsBuilder"
class: App\FrontendApi\Model\BlogArticle\BlogArticlePaginatorArgumentsBuilder
# these settings are suggested by docs: https://github.com/overblog/GraphQLBundle/blob/master/docs/index.md#composer-autoloader-configuration-optional
use_classloader_listener: false
auto_compile: true
cache_dir: '%kernel.project_dir%/var/overblogCompiledClasses'
security:
handle_cors: true
query_max_complexity: 1110
Expand Down

0 comments on commit 0e64af9

Please sign in to comment.