Skip to content

Commit 7082537

Browse files
authored
Prepare for Sylius 1.14 (#1061)
2 parents acc4cb8 + 1e623a5 commit 7082537

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+396
-360
lines changed

.editorconfig

-6
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ indent_style = space
4949
indent_size = 4
5050
trim_trailing_whitespace = false
5151

52-
[docker-compose.{yaml,yml}]
53-
indent_size = 2
54-
55-
[docker-compose.*.{yaml,yml}]
56-
indent_size = 2
57-
5852
[.babelrc]
5953
indent_style = space
6054
indent_size = 2

.github/workflows/build.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ jobs:
164164

165165
-
166166
name: Validate composer.json
167-
run: composer validate --ansi --strict --no-check-publish
167+
run: composer validate --ansi --strict --no-check-all
168+
# Restore before Sylius 1.14 release
169+
# run: composer validate --ansi --strict --no-check-publish
168170

169171
-
170172
name: Run security check

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2011-2020 Paweł Jędrzejewski
1+
Copyright (c) 2011-present Sylius Sp. z o.o.
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

LICENSE_OF_TRADEMARK_AND_LOGO

+162
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
Encourage widespread and fair use of Sylius logo and brand identity.
2+
3+
This Trademarks and Logos use policy (the “Policy”) is based on the Ubuntu
4+
and Symfony trademark policy and published under the CC-BY-SA license. You
5+
are welcome to base your own project trademark policies off it, just let
6+
others use your changes and give credit to the Ubuntu and Symfony projects
7+
as the original source!
8+
9+
Version n°1. Published on April 5th 2019.
10+
11+
The objective of the Policy is to encourage widespread use of the Sylius
12+
trademarks by the Sylius community while controlling that use in order to
13+
avoid confusion on the part of Sylius users and the general public, to
14+
maintain the value of the image and reputation of the trademarks and to
15+
protect them from inappropriate or unauthorised use.
16+
17+
The sections below describe what is allowed, what isn’t allowed, and cases
18+
in which you should ask permission.
19+
If you have any doubt, please contact us and a member of our legal
20+
representative will be in touch with you shortly.
21+
If you are aware a breach or misuse of the Sylius trademarks in any
22+
way, we would appreciate you bringing this to our attention. Please
23+
contact us so that we can investigate this further.
24+
25+
The Trademarks and Logos
26+
Sylius sp. z o.o. owns the verbal trademark containing
27+
in whole or part of the word “Sylius”.
28+
29+
Any verbal mark starting with the letters “Sylius” is sufficiently
30+
similar to one or more of the trademarks that permission will be
31+
needed in order to use it.
32+
33+
All verbal trademarks of Sylius sp. z o.o., all distinctive signs used in
34+
commerce by Sylius sp. z o.o. to designate his products or services related
35+
to Sylius are collectively referred to as the “Trademarks”.
36+
37+
Permitted use of the Trademarks
38+
Certain usages of the Trademarks are fine and no specific permission
39+
from us is needed.
40+
41+
Community advocacy. Sylius is built by its community. We share access to
42+
the Trademarks with the entire community for the purposes of discussion,
43+
development and advocacy. We recognise that most of the open source discussion
44+
and development areas are for non-commercial purposes and will allow the
45+
use of the Trademarks in this context, provided:
46+
47+
the Trademark is used in a manner consistent with this Policy;
48+
there is no commercial intent behind the use;
49+
what you are referring to is in fact Sylius. If someone is confused into
50+
thinking that what isn’t Sylius is, in fact, Sylius, you are probably doing
51+
something wrong;
52+
there is no suggestion (through words or appearance) that your project is
53+
approved, sponsored, or affiliated with Sylius, Sylius sp. z o.o. or its
54+
related projects unless it actually has been approved by and is accountable
55+
to Sylius sp. z o.o. and the Sylius Project.
56+
Building on Sylius or for Sylius. If you are producing new software which is
57+
intended for use with or on Sylius, you may use the Trademark in a way which
58+
indicates the intent of your product. For example, if you are developing a
59+
system management tool for Sylius, acceptable project titles would be
60+
“System Management for Sylius” or “Sylius Based Systems Management”. We would
61+
strongly discourage, and likely would consider to be problematic, a name such
62+
as SyliusMan, Sylius Management, etc. Furthermore, you may not use the
63+
Trademarks in a way which implies an endorsement where that doesn’t exist,
64+
or which attempts to unfairly or confusingly capitalise on the goodwill
65+
or brand of the project.
66+
67+
Commentary and parody. The Trademarks and Logos are designed to cover use of
68+
a mark to imply origin or endorsement by the project. When a user downloads
69+
something called Sylius, they should know it comes from the Sylius project.
70+
This helps Sylius build a reputation that will not be damaged by confusion
71+
around what is, and isn’t, Sylius. Using the Trademarks in your discussion,
72+
commentary, criticism or parody, in ways that unequivocally do not imply
73+
endorsement, is permissible. Anyone is free to write articles, create
74+
websites, blog about, or talk about Sylius — as long as it’s clear to
75+
everyone — including people completely unfamiliar with Sylius — that they
76+
are simply referring to Sylius and in no way speaking for the Sylius
77+
project and/or for Sylius sp. z o.o.
78+
79+
We reserve the right to review all usage within the open source community,
80+
and to object to any usage that appears to overstep the bounds of discussion
81+
and good-faith non-commercial development. In any event, once a project has
82+
left the open source project phase or otherwise become a commercial project,
83+
this Policy does not authorise any use of the Trademarks in connection to
84+
that project.
85+
86+
Restricted use that requires a trademark licence
87+
Permission from us is necessary to use any of the Trademarks under any
88+
circumstances other than those specifically permitted above.
89+
90+
These include but are not limited to:
91+
92+
Any commercial use including for any services related to Sylius such as
93+
providing training services, conference services, or design services (should
94+
you wish to provide such services, please contact us beforehand to explore
95+
Sylius Solution Partner Program);
96+
Use on or in relation to a software product that includes or is built on top
97+
of a product supplied by us, if there is any commercial intent associated
98+
with that product;
99+
Use in a domain name or URL;
100+
Use for merchandising purposes, e.g. on t-shirts and the like.
101+
If you wish to have permission for any of the uses above or for any other use
102+
which is not specifically referred to in this Policy, please contact us and
103+
we’ll let you know as soon as possible if your proposed use is permissible.
104+
Permission may only be granted subject to certain conditions and these may
105+
include the requirement that you enter into an agreement with us to maintain
106+
the quality of the product and/or service which you intend to supply at a
107+
prescribed level.
108+
109+
While there may be exceptions, it is very unlikely that we will approve
110+
Trademark use in the following cases:
111+
112+
Use of a Trademark in a company name;
113+
Use of a Trademark in a domain name which has a commercial intent. The
114+
commercial intent can range from promotion of a company or product, to
115+
collecting revenue generated by advertising;
116+
The calling of any software or product by the name Sylius (or another
117+
related Trademark);
118+
Use in combination with any other marks or logos. This include use of
119+
a Trademark in a manner that creates a “combined mark,” or use that
120+
integrates other wording with the Trademark in a way that the public may
121+
think of the use as a new mark (for example Club Sylius or SyliusBooks, or
122+
in a way that by use of special fonts or presentation with nearby words or
123+
images conveys an impression that the two are tied in some way);
124+
Use in combination with any product or service which is presented as being
125+
Certified or Official or formally associated with us or our products or
126+
services;
127+
Use in a way which implies an endorsement where that doesn’t exist, or which
128+
attempts to unfairly or confusingly capitalise on the goodwill or brand of
129+
the project;
130+
Use of a Trademark in a manner that disparages Sylius, or Sylius sp. z o.o.;
131+
or its products and is not clearly third-party parody;
132+
Use of a Trademark on or in relation to a software product which constitutes
133+
a substantially modified version of a product supplied by the Sylius project,
134+
that is to say with material changes to the code, or services relating to
135+
such a product; and
136+
Use of a Trademark in a title or metatag of a web page whose sole intention or
137+
result is to influence search engine rankings or result listings (for example
138+
use as keyword for advertising purposes), rather than for discussion,
139+
development or advocacy of the Trademarks.
140+
Logo usage guidelines
141+
Except otherwise agreed, any use of Logos shall be expressly authorized by
142+
writing by Sylius sp. z o.o.. To get any authorization to use any Logo,
143+
please contact us and a member of our team will be in touch with you shortly.
144+
145+
Our logos are presented in multiple colours and it is important that their
146+
visual integrity be maintained.
147+
148+
Therefore, when use of Logos is authorized, it is therefore preferable that
149+
the logos only be used in their standard form but if you should feel the need
150+
to alter them in any way you should keep the following guidelines in mind.
151+
152+
It should also be borne in mind that the more you wish to vary our logos
153+
from their standard form the smaller is the chance that we will be able to
154+
approve your proposed use.
155+
156+
If presented in multiple colours, the logo should only use the “official”
157+
logo colours.
158+
You may use transparency and gradient/depth tools but should retain the
159+
“official” colours.
160+
Any scaling must retain the original proportions of the logo.
161+
In case of non-compliance with Trademarks and Logos’ Use Policy or
162+
applicable law, any use of the Trademarks and/or Logos will be prohibited.

composer.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
],
2626
"require": {
2727
"php": "^8.1",
28-
"sylius/paypal-plugin": "^1.6",
29-
"sylius/sylius": "~1.13.2",
28+
"sylius/sylius": "v1.14.0-beta.1",
3029
"symfony/dotenv": "^5.4 || ^6.4",
3130
"symfony/flex": "^2.4",
3231
"symfony/runtime": "^5.4 || ^6.4"

config/bundles.php

-1
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,4 @@
6060
SyliusLabs\Polyfill\Symfony\Security\Bundle\SyliusLabsPolyfillSymfonySecurityBundle::class => ['all' => true],
6161
League\FlysystemBundle\FlysystemBundle::class => ['all' => true],
6262
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
63-
Sylius\PayPalPlugin\SyliusPayPalPlugin::class => ['all' => true],
6463
];

config/packages/_sylius.yaml

+10-14
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,11 @@ imports:
66

77
- { resource: "@SyliusShopBundle/Resources/config/app/config.yml" }
88

9-
- { resource: "@SyliusPayPalPlugin/Resources/config/config.yaml" }
109
- { resource: "../parameters.yaml" }
1110

1211
parameters:
1312
sylius_core.public_dir: '%kernel.project_dir%/public'
1413

15-
when@dev:
16-
sylius_api:
17-
enabled: true
18-
1914
sylius_addressing:
2015
resources:
2116
address:
@@ -177,6 +172,9 @@ sylius_promotion:
177172
catalog_promotion:
178173
classes:
179174
model: App\Entity\Promotion\CatalogPromotion
175+
translation:
176+
classes:
177+
model: App\Entity\Promotion\CatalogPromotionTranslation
180178
catalog_promotion_action:
181179
classes:
182180
model: App\Entity\Promotion\CatalogPromotionAction
@@ -186,6 +184,9 @@ sylius_promotion:
186184
promotion:
187185
classes:
188186
model: App\Entity\Promotion\Promotion
187+
translation:
188+
classes:
189+
model: App\Entity\Promotion\PromotionTranslation
189190
promotion_rule:
190191
classes:
191192
model: App\Entity\Promotion\PromotionRule
@@ -250,13 +251,8 @@ sylius_user:
250251
classes:
251252
model: App\Entity\User\UserOAuth
252253

253-
sylius_shop:
254-
product_grid:
255-
include_all_descendants: true
254+
when@test: &sylius_user_test
255+
sylius_user:
256+
encoder: plaintext
256257

257-
sylius_theme:
258-
sources:
259-
filesystem:
260-
scan_depth: 1
261-
directories:
262-
- "%kernel.project_dir%/themes"
258+
when@test_cached: *sylius_user_test

config/packages/dev/jms_serializer.yaml

-12
This file was deleted.

config/packages/dev/monolog.yaml

-9
This file was deleted.

config/packages/dev/nelmio_alice.yaml

-3
This file was deleted.

config/packages/doctrine.yaml

+37-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ parameters:
88
doctrine:
99
dbal:
1010
url: '%env(resolve:DATABASE_URL)%'
11-
1211
orm:
1312
auto_generate_proxy_classes: '%kernel.debug%'
1413
entity_managers:
@@ -21,3 +20,40 @@ doctrine:
2120
dir: '%kernel.project_dir%/src/Entity'
2221
prefix: 'App\Entity'
2322
alias: App
23+
24+
when@prod: &doctrine_prod
25+
doctrine:
26+
orm:
27+
entity_managers:
28+
default:
29+
metadata_cache_driver:
30+
type: service
31+
id: doctrine.system_cache_provider
32+
query_cache_driver:
33+
type: service
34+
id: doctrine.system_cache_provider
35+
result_cache_driver:
36+
type: service
37+
id: doctrine.result_cache_provider
38+
services:
39+
doctrine.result_cache_provider:
40+
class: Doctrine\Common\Cache\Psr6\DoctrineProvider
41+
public: false
42+
factory: [ 'Doctrine\Common\Cache\Psr6\DoctrineProvider', 'wrap' ]
43+
arguments:
44+
- '@doctrine.result_cache_pool'
45+
doctrine.system_cache_provider:
46+
class: Doctrine\Common\Cache\Psr6\DoctrineProvider
47+
public: false
48+
factory: [ 'Doctrine\Common\Cache\Psr6\DoctrineProvider', 'wrap' ]
49+
arguments:
50+
- '@doctrine.system_cache_pool'
51+
framework:
52+
cache:
53+
pools:
54+
doctrine.result_cache_pool:
55+
adapter: cache.app
56+
doctrine.system_cache_pool:
57+
adapter: cache.system
58+
59+
when@test_cached: *doctrine_prod
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
when@test: &fidry_alice_data_fixtures_test
2+
fidry_alice_data_fixtures:
3+
default_purge_mode: no_purge
4+
5+
when@test_cached: *fidry_alice_data_fixtures_test

config/packages/fos_rest.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ fos_rest:
99
rules:
1010
- { path: '^/api/v1/.*', priorities: ['json', 'xml'], fallback_format: json, prefer_extension: true }
1111
- { path: '^/', stop: true }
12+
13+
when@test_cached:
14+
fos_rest:
15+
exception:
16+
debug: true

config/packages/http_discovery.yaml

-10
This file was deleted.

config/packages/jms_serializer.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,29 @@ jms_serializer:
22
visitors:
33
xml_serialization:
44
format_output: '%kernel.debug%'
5+
6+
when@prod:
7+
jms_serializer:
8+
visitors:
9+
json_serialization:
10+
options:
11+
- JSON_UNESCAPED_SLASHES
12+
- JSON_PRESERVE_ZERO_FRACTION
13+
json_deserialization:
14+
options:
15+
- JSON_UNESCAPED_SLASHES
16+
- JSON_PRESERVE_ZERO_FRACTION
17+
18+
when@dev:
19+
jms_serializer:
20+
visitors:
21+
json_serialization:
22+
options:
23+
- JSON_PRETTY_PRINT
24+
- JSON_UNESCAPED_SLASHES
25+
- JSON_PRESERVE_ZERO_FRACTION
26+
json_deserialization:
27+
options:
28+
- JSON_PRETTY_PRINT
29+
- JSON_UNESCAPED_SLASHES
30+
- JSON_PRESERVE_ZERO_FRACTION

0 commit comments

Comments
 (0)