Skip to content

Commit 9c84984

Browse files
Prepare version for Sylius 1.14 (#32)
2 parents 22fa9b1 + d62cd7a commit 9c84984

21 files changed

+446
-8735
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ APP_SECRET=EDITME
1212
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
1313
# For a sqlite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
1414
# Set "serverVersion" to your server version to avoid edge-case exceptions and extra database calls
15-
DATABASE_URL=mysql://[email protected]/test_kit_%kernel.environment%
15+
DATABASE_URL=mysql://[email protected]/test_application_%kernel.environment%
1616
###< doctrine/doctrine-bundle ###
1717

1818
###> lexik/jwt-authentication-bundle ###

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
###> symfony/webpack-encore-bundle ###
2424
/node_modules/
2525
/public/build/
26-
npm-debug.log
27-
yarn-error.log
26+
/npm-debug.log
27+
/yarn-error.log
28+
/yarn.lock
2829
###< symfony/webpack-encore-bundle ###
2930

3031
###> lexik/jwt-authentication-bundle ###

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2025-present Sylius Sp. z o.o.
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is furnished
8+
to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

LICENSE_OF_TRADEMARK_AND_LOGO

Lines changed: 162 additions & 0 deletions
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.

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<p align="center">
2+
<a href="https://sylius.com" target="_blank">
3+
<picture>
4+
<source media="(prefers-color-scheme: dark)" srcset="https://media.sylius.com/sylius-logo-800-dark.png">
5+
<source media="(prefers-color-scheme: light)" srcset="https://media.sylius.com/sylius-logo-800.png">
6+
<img alt="Sylius Logo." src="https://media.sylius.com/sylius-logo-800.png">
7+
</picture>
8+
</a>
9+
</p>
10+
11+
Test Application
12+
================
13+
14+
The Test Application is a shared testing environment designed to simplify Sylius plugin development. Instead of setting up
15+
a full application in every plugin, you now use a common, pre-configured application maintained by the Sylius team.
16+
17+
## Purpose
18+
19+
Previously, each plugin had to maintain its own copy of a test application, leading to duplicated configuration,
20+
maintenance overhead, and version incompatibilities.
21+
22+
This package solves that problem by:
23+
24+
- Extracting a reusable, standalone test application
25+
- Providing an official, centrally maintained solution by the Sylius team
26+
- Simplifying the setup and execution of tests within plugins
27+
- Creating versioned variants aligned with specific Sylius versions (e.g. `1.14`, `2.0`, etc.)
28+
29+
## Documentation
30+
31+
For more information about the **Test Application**, and on installation and configuration instructions,
32+
please refer to the [Sylius documentation](https://docs.sylius.com/sylius-plugins/plugins-development-guide/test-application).
33+
34+
## Example usage
35+
36+
See an example implementation in [the pull request](https://github.com/Sylius/InvoicingPlugin/pull/373) to Sylius/InvoicingPlugin.
37+
38+
## Community
39+
40+
For online communication, we invite you to chat with us & other users on [Sylius Slack](https://sylius-devs.slack.com/).
41+
42+
## License
43+
44+
This package is completely free and released under the MIT License.

assets/admin/entrypoint.js

Whitespace-only changes.

assets/controllers.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

assets/shop/entrypoint.js

Whitespace-only changes.

bin/console

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#!/usr/bin/env php
22
<?php
33

4+
use Sylius\TestApplication\Kernel;
45
use Symfony\Component\ErrorHandler\Debug;
5-
use TestKitApp\Kernel;
66
use Symfony\Bundle\FrameworkBundle\Console\Application;
77
use Symfony\Component\Console\Input\ArgvInput;
88

9-
109
if (isset($GLOBALS['_composer_autoload_path']) && $GLOBALS['_composer_autoload_path']) {
1110
require_once $GLOBALS['_composer_autoload_path'];
1211
} else {
@@ -19,7 +18,6 @@ if (isset($GLOBALS['_composer_autoload_path']) && $GLOBALS['_composer_autoload_p
1918
}
2019
}
2120

22-
2321
$input = new ArgvInput();
2422
if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {
2523
putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);
@@ -39,20 +37,26 @@ if ($_SERVER['APP_DEBUG']) {
3937
}
4038
}
4139

42-
if (isset($_ENV['PLUGINS_TO_ENABLE'])) {
43-
$_SERVER['PLUGINS_TO_ENABLE'] = $_ENV['PLUGINS_TO_ENABLE'];
40+
if (isset($_ENV['SYLIUS_TEST_APP_CONFIGS_TO_IMPORT'])) {
41+
$_SERVER['SYLIUS_TEST_APP_CONFIGS_TO_IMPORT'] = $_ENV['SYLIUS_TEST_APP_CONFIGS_TO_IMPORT'];
42+
}
43+
44+
if (isset($_ENV['SYLIUS_TEST_APP_ROUTES_TO_IMPORT'])) {
45+
$_SERVER['SYLIUS_TEST_APP_ROUTES_TO_IMPORT'] = $_ENV['SYLIUS_TEST_APP_ROUTES_TO_IMPORT'];
4446
}
4547

46-
if (isset($_ENV['CONFIGS_TO_IMPORT'])) {
47-
$_SERVER['CONFIGS_TO_IMPORT'] = $_ENV['CONFIGS_TO_IMPORT'];
48+
if (isset($_ENV['SYLIUS_TEST_APP_BUNDLES_TO_ENABLE'])) {
49+
$_SERVER['SYLIUS_TEST_APP_BUNDLES_TO_ENABLE'] = $_ENV['SYLIUS_TEST_APP_BUNDLES_TO_ENABLE'];
4850
}
4951

50-
if (isset($_ENV['ROUTES_TO_IMPORT'])) {
51-
$_SERVER['ROUTES_TO_IMPORT'] = $_ENV['ROUTES_TO_IMPORT'];
52+
if (isset($_ENV['SYLIUS_TEST_APP_BUNDLES_PATH'])) {
53+
$_SERVER['SYLIUS_TEST_APP_BUNDLES_PATH'] = $_ENV['SYLIUS_TEST_APP_BUNDLES_PATH'];
5254
}
5355

56+
if (isset($_ENV["SYLIUS_TEST_APP_BUNDLES_REPLACE_PATH"])) {
57+
$_SERVER["SYLIUS_TEST_APP_BUNDLES_REPLACE_PATH"] = $_ENV["SYLIUS_TEST_APP_BUNDLES_REPLACE_PATH"];
58+
}
5459

5560
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
5661
$application = new Application($kernel);
5762
$application->run($input);
58-

composer.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
2-
"name": "sylius/test-kit",
2+
"name": "sylius/test-application",
3+
"license": "MIT",
34
"require": {
4-
"php": "^8.2",
5-
"sylius/sylius": "^1.14",
5+
"php": "^8.1",
6+
"sylius/sylius": "~1.14.0",
67
"symfony/debug-bundle": "*",
78
"symfony/dotenv": "*",
89
"symfony/flex": "*",
10+
"symfony/runtime": "*",
911
"symfony/web-profiler-bundle": "*",
10-
"theofidry/alice-data-fixtures": "*",
11-
"symfony/runtime": "*"
12+
"theofidry/alice-data-fixtures": "*"
1213
},
1314
"bin": [
1415
"bin/console"
@@ -21,7 +22,7 @@
2122
},
2223
"autoload": {
2324
"psr-4": {
24-
"TestKitApp\\": "src/"
25+
"Sylius\\TestApplication\\": "src/"
2526
}
2627
},
2728
"scripts": {

0 commit comments

Comments
 (0)