Skip to content
Open
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
31 changes: 31 additions & 0 deletions src/Resources/api_resources/RequestContact.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" ?>

<resources xmlns="https://api-platform.com/schema/metadata"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://api-platform.com/schema/metadata https://api-platform.com/schema/metadata/metadata-2.0.xsd"
>
<resource class="Sylius\Bundle\ApiBundle\Command\SendContactRequest" shortName="RequestContact">
<attribute name="route_prefix">shop</attribute>

<graphql>
<operation name="item_query" />

<operation name="shop_send_contact_request">
<attribute name="method">POST</attribute>
<attribute name="messenger">input</attribute>
<attribute name="input">Sylius\Bundle\ApiBundle\Command\SendContactRequest</attribute>
<attribute name="args">
<attribute name="email">
<attribute name="type">String</attribute>
</attribute>
<attribute name="message">
<attribute name="type">String</attribute>
</attribute>
</attribute>
</operation>
</graphql>

<property name="email" identifier="true" readable="false" />
<property name="message" />
</resource>
</resources>
2 changes: 1 addition & 1 deletion src/Resources/services/resolvers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ We are hiring developers from all over the world. Join us and start your new, ex
<argument type="service" id="doctrine.orm.entity_manager" />
<argument type="service" id="sylius.repository.shop_user" />
<argument type="service" id="sylius.repository.order" />
<argument type="service" id="security.encoder_factory" />
<argument type="service" id="security.password_hasher_factory" />
<argument type="service" id="bitbag.sylius_vue_storefront2_plugin.factory.shop_user_token_factory" />
<argument type="service" id="event_dispatcher" />
<argument type="service" id="sylius.context.channel" />
Expand Down