Skip to content

Commit 9738dfd

Browse files
committed
Merge branch '1.3' of ezsystems/ezplatform-kernel into 4.3
2 parents 0d4e86d + 4ae7334 commit 9738dfd

File tree

5,461 files changed

+297360
-298465
lines changed

Some content is hidden

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

5,461 files changed

+297360
-298465
lines changed

.github/pull_request_template.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
| ---------------------------------------- | ------------------
33
| **JIRA issue** | [IBX-XXXX](https://issues.ibexa.co/browse/IBX-XXXX)
44
| **Type** | feature/bug/improvement
5-
| **Target Ibexa version** | `v3.3`
5+
| **Target Ibexa version** | `v4.0`
66
| **BC breaks** | yes/no
77

88
<!-- Replace this comment with Pull Request description -->
@@ -11,6 +11,6 @@
1111
- [ ] Provided PR description.
1212
- [ ] Tested the solution manually.
1313
- [ ] Provided automated test coverage.
14-
- [ ] Checked that target branch is set correctly (master for features, the oldest supported for bugs).
14+
- [ ] Checked that target branch is set correctly (main for features, the oldest supported for bugs).
1515
- [ ] Ran PHP CS Fixer for new PHP code (use `$ composer fix-cs`).
16-
- [ ] Asked for a review (ping `@ezsystems/engineering-team`).
16+
- [ ] Asked for a review (ping `@ibexa/engineering`).

.github/workflows/browser-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main
1414
with:
1515
project-edition: 'oss'
16-
project-version: '^3.3.x-dev'
16+
project-version: '4.3.x-dev'
1717
test-setup-phase-1: '--mode=standard --profile=core --suite=setup'
1818
test-suite: "--mode=standard --profile=core --tags='~@broken&&~@setup'"
1919
secrets:

.github/workflows/ci.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
- '[0-9]+.[0-9]+'
88
pull_request: ~
99

@@ -42,7 +42,6 @@ jobs:
4242
fail-fast: false
4343
matrix:
4444
php:
45-
- '7.3'
4645
- '7.4'
4746
- '8.0'
4847
- '8.1'
@@ -98,7 +97,6 @@ jobs:
9897
fail-fast: false
9998
matrix:
10099
php:
101-
- '7.3'
102100
- '7.4'
103101
- '8.0'
104102
- '8.1'
@@ -224,7 +222,7 @@ jobs:
224222
coverage: none
225223

226224
- name: Add solr dependency
227-
run: composer require --no-update "ezsystems/ezplatform-solr-search-engine:^3.3@dev"
225+
run: composer require --no-update "ibexa/solr:~4.3.0@dev"
228226

229227
- uses: "ramsey/composer-install@v1"
230228
with:
@@ -236,4 +234,3 @@ jobs:
236234
CUSTOM_CACHE_POOL: singleredis
237235
CACHE_HOST: 127.0.0.1
238236
CORES_SETUP: single
239-

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
config.php
21
doc/apidoc/
32
docblox.xml
43
composer.phar

.php-cs-fixer.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,8 @@
1111
->setFinder(
1212
PhpCsFixer\Finder::create()
1313
->in([
14-
__DIR__ . '/eZ',
1514
__DIR__ . '/src',
1615
__DIR__ . '/tests',
1716
])
18-
->exclude(
19-
[
20-
'Bundle/EzPublishCoreBundle/Tests/DependencyInjection/Fixtures',
21-
'Publish/API/Repository/Tests/FieldType/_fixtures',
22-
'Publish/API/Repository/Tests/_fixtures',
23-
'Publish/Core/FieldType/Tests/Url/Gateway/_fixtures',
24-
'Publish/Core/IO/Tests/_fixtures',
25-
'Publish/Core/MVC/Symfony/Templating/Tests/Twig/Extension/_fixtures',
26-
'Publish/Core/Persistence/Legacy/Tests/Content/Location/Gateway/_fixtures',
27-
'Publish/Core/Persistence/Legacy/Tests/Content/Type/Gateway/_fixtures',
28-
'Publish/Core/Persistence/Legacy/Tests/Content/Type/_fixtures',
29-
'Publish/Core/Persistence/Legacy/Tests/Content/UrlAlias/Gateway/_fixtures',
30-
'Publish/Core/Persistence/Legacy/Tests/Content/UrlAlias/_fixtures',
31-
'Publish/Core/Persistence/Legacy/Tests/Content/UrlWildcard/Gateway/_fixtures',
32-
'Publish/Core/Persistence/Legacy/Tests/Content/_fixtures',
33-
'Publish/Core/Persistence/Legacy/Tests/_fixtures',
34-
'Publish/Core/Persistence/Tests/TransformationProcessor/_fixtures',
35-
'Publish/Core/Repository/Tests/Service/Integration/Legacy/_fixtures',
36-
'Publish/Core/Search/Legacy/Tests/_fixtures',
37-
'Publish/SPI/Tests/FieldType/_fixtures',
38-
]
39-
)
4017
->files()->name('*.php')
4118
);

Readme.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ Ibexa Kernel also aims to provide additional features for the MVC layer (Symfony
1010
## Current Organization
1111

1212
MVC layer:
13-
- [eZ/Bundle](eZ/Bundle) - the bundles that are important to expose the functionality of the Backend and MVC layer to Symfony.
14-
- [eZ/Publish/Core/MVC](eZ/Publish/Core/MVC) - the parts that make up the different components extending Symfony.
15-
- [eZ/Publish/Core/Pagination](eZ/Publish/Core/Pagination) - a component extending PagerFanta for pagination of eZ Platform search queries.
13+
- [src/bundle](src/bundle) - the bundles that are important to expose the functionality of the Backend and MVC layer to Symfony.
14+
- [src/lib/MVC](src/lib/MVC) - the parts that make up the different components extending Symfony.
15+
- [src/lib/Pagination](src/lib/Pagination) - a component extending PagerFanta for pagination of Ibexa search queries.
1616

1717
Backend:
18-
- [eZ/Publish/API](eZ/Publish/API) - the definition of stable interfaces for the PHP *Public* API, mainly Content *Repository API*.
19-
- [eZ/Publish/SPI/Persistence](eZ/Publish/SPI/Persistence) - a layer which is not frozen yet, meaning it might change in between releases. Those are persistence interfaces for Storage Engine.
20-
- [eZ/Publish/SPI](eZ/Publish/SPI) - (anything other than Persistence) is frozen and has a Backward Compatibility promise of Service Provider Interface, meaning no breaking changes both from consumption and implementation POV.
21-
- [eZ/Publish/Core](eZ/Publish/Core) - implementations of both APIs and SPIs; the naming aims to map to name of the interface they implement. For example, `Core\Persistence\Legacy` being implementation of `SPI\Persistence`.
18+
- [src/contracts](src/contracts) - the definition of stable interfaces for the PHP *Public* API, mainly Content *Repository API*.
19+
- [src/contracts/Persistence](src/contracts/Persistence) - a layer which is not frozen yet, meaning it might change in between releases. Those are persistence interfaces for Storage Engine.
20+
- [src/lib](src/lib) - implementations of API Contracts; the naming aims to map to name of the interface they implement. For example, `Ibexa\Core\Persistence\Legacy` being implementation of `Ibexa\Contracts\Core\Persistence`.
2221

2322
## Testing Locally
2423

@@ -34,15 +33,15 @@ For Contributing to this Bundle, you should make sure to run both unit and integ
3433

3534
```bash
3635
# Note: Change the line below to the ssh format of your fork to create topic branches to propose as pull requests
37-
git clone https://github.com/ezsystems/ezplatform-kernel.git
38-
cd ezplatform-kernel
36+
git clone https://github.com/ibexa/core.git
37+
cd core
3938
composer install
4039
```
4140
2. Run unit tests:
4241

4342
At this point you should be able to run unit tests:
4443
```bash
45-
php -d memory_limit=-1 vendor/bin/phpunit
44+
composer unit
4645
```
4746

4847
3. Run integration tests:
@@ -51,10 +50,10 @@ For Contributing to this Bundle, you should make sure to run both unit and integ
5150
# If you want to test against mysql or postgres instead of sqlite, define one of these with reference to an empty test db:
5251
# export DATABASE="mysql://root@localhost/$DB_NAME"
5352
# export DATABASE="pgsql://postgres@localhost/$DB_NAME"
54-
php -d memory_limit=-1 vendor/bin/phpunit -c phpunit-integration-legacy.xml
53+
composer integration
5554
```
5655

57-
To run integration tests against Solr, see [Solr Search Engine Bundle for Ibexa DXP](https://github.com/ezsystems/ezplatform-solr-search-engine).
56+
To run integration tests against Solr, see [Solr Search Engine Bundle for Ibexa DXP](https://github.com/ibexa/solr-search-engine).
5857

5958
## COPYRIGHT
6059

appveyor.yml

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

bin/extract-translations.sh

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

bootstrap.php

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,12 @@
11
<?php
22

33
/**
4-
* File containing the bootstrapping of eZ Publish API for unit test use.
5-
*
6-
* Setups class loading.
7-
*
8-
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
4+
* @copyright Copyright (C) Ibexa AS. All rights reserved.
95
* @license For full copyright and license information view LICENSE file distributed with this source code.
106
*/
11-
127
use Symfony\Bridge\PhpUnit\ClockMock;
138
use Symfony\Component\HttpFoundation\Request;
149

15-
// Get global config.php settings
16-
17-
if (!file_exists(__DIR__ . '/config.php')) {
18-
if (!symlink(__DIR__ . '/config.php-DEVELOPMENT', __DIR__ . '/config.php')) {
19-
throw new \RuntimeException('Could not symlink config.php-DEVELOPMENT to config.php. Copy config.php-DEVELOPMENT to config.php and customize it to your needs.');
20-
}
21-
}
22-
23-
if (!($settings = include(__DIR__ . '/config.php'))) {
24-
throw new \RuntimeException('Could not read config.php. Copy config.php-DEVELOPMENT to config.php and customize it to your needs.');
25-
}
26-
27-
// Class alias used for BC
28-
// Enables old code which still extends non namespaced TestCase to work
29-
class_alias('PHPUnit\Framework\TestCase', 'PHPUnit_Framework_TestCase');
30-
3110
// Register ClockMock for Request class before any tests are run
3211
// https://github.com/symfony/symfony/issues/28259
3312
ClockMock::register(Request::class);

composer.json

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "ezsystems/ezplatform-kernel",
3-
"description": "Kernel used by ezsystems/ezplatform and derivatives. Provides the Content Repository, its APIs, and the application's Symfony framework integration.",
4-
"homepage": "https://ezplatform.com",
5-
"license": "GPL-2.0-only",
2+
"name": "ibexa/core",
3+
"description": "Ibexa DXP and Open Source core. Provides the Content Repository, its APIs, and the application's Symfony framework integration.",
4+
"homepage": "https://ibexa.co",
5+
"license": "(GPL-2.0-only or proprietary)",
66
"suggest": {
77
"php-64bit": "For support of more than 30 languages, a 64bit php installation on all involved prod/dev machines is required"
88
},
99
"require": {
10-
"php": "^7.3 || ^8.0",
10+
"php": "^7.4 || ^8.0",
1111
"ext-ctype": "*",
1212
"ext-fileinfo": "*",
1313
"ext-intl": "*",
@@ -36,7 +36,7 @@
3636
"symfony/expression-language": "^5.3.0",
3737
"symfony/validator": "^5.3.0",
3838
"symfony/var-dumper": "^5.3.0",
39-
"ezsystems/doctrine-dbal-schema": "^1.0@dev",
39+
"ibexa/doctrine-schema": "~4.3.0@dev",
4040
"symfony-cmf/routing": "^2.3",
4141
"guzzlehttp/guzzle": "^6.5",
4242
"php-http/guzzle6-adapter": "^2.0",
@@ -63,8 +63,8 @@
6363
"jenner/simple_fork": "^1.2",
6464
"friends-of-behat/mink-extension": "^2.4",
6565
"league/flysystem-memory": "^1.0",
66-
"ibexa/ci-scripts": "^0.1@dev",
67-
"ezsystems/ezplatform-code-style": "^2.0",
66+
"ibexa/ci-scripts": "^0.2@dev",
67+
"ibexa/code-style": "^1.0",
6868
"phpunit/phpunit": "^8.2",
6969
"matthiasnoback/symfony-dependency-injection-test": "^4.1",
7070
"symfony/phpunit-bridge": "^5.1",
@@ -80,28 +80,41 @@
8080
"phpunit/phpunit": "8.4.0"
8181
},
8282
"replace": {
83-
"ezsystems/ezpublish-kernel": "*"
83+
"ezsystems/ezplatform-kernel": "*"
8484
},
8585
"autoload": {
8686
"psr-4": {
87-
"EzSystems\\PlatformInstallerBundle\\": "eZ/Bundle/PlatformInstallerBundle/src",
88-
"eZ\\": "eZ",
8987
"Ibexa\\Bundle\\Core\\": "src/bundle/Core",
9088
"Ibexa\\Bundle\\Debug\\": "src/bundle/Debug",
9189
"Ibexa\\Bundle\\IO\\": "src/bundle/IO",
92-
"Ibexa\\Bundle\\Installer\\": "src/bundle/Installer",
90+
"Ibexa\\Bundle\\RepositoryInstaller\\": "src/bundle/RepositoryInstaller",
9391
"Ibexa\\Bundle\\LegacySearchEngine\\": "src/bundle/LegacySearchEngine",
9492
"Ibexa\\Contracts\\Core\\": "src/contracts",
95-
"Ibexa\\Core\\": "src/lib"
93+
"Ibexa\\Core\\": "src/lib",
94+
"Ibexa\\Tests\\Core\\": "tests/lib",
95+
"Ibexa\\Tests\\Integration\\Core\\": "tests/integration/Core",
96+
"Ibexa\\Tests\\Bundle\\Core\\": "tests/bundle/Core",
97+
"eZ\\Publish\\API\\Repository\\Tests\\": "src/contracts/Test/Repository",
98+
"eZ\\Publish\\SPI\\Tests\\": "src/contracts/Test",
99+
"eZ\\Publish\\API\\": "src/contracts",
100+
"eZ\\Publish\\SPI\\": "src/contracts",
101+
"eZ\\Publish\\Core\\": "src/lib",
102+
"eZ\\Bundle\\EzPublishCoreBundle\\": "src/bundle/Core",
103+
"eZ\\Bundle\\EzPublishDebugBundle\\": "src/bundle/Debug",
104+
"eZ\\Bundle\\EzPublishIOBundle\\": "src/bundle/IO",
105+
"eZ\\Bundle\\EzPublishLegacySearchEngineBundle\\": "src/bundle/LegacySearchEngine",
106+
"eZ\\Bundle\\EzPublishCoreBundle\\Tests\\": "tests/bundle/Core",
107+
"eZ\\Publish\\Core\\MVC\\Symfony\\Templating\\Tests\\": "tests/lib/MVC/Symfony/Templating",
108+
"eZ\\Publish\\Core\\Persistence\\Legacy\\Tests\\": "tests/lib/Persistence/Legacy",
109+
"EzSystems\\PlatformInstallerBundle\\": "src/bundle/RepositoryInstaller"
96110
}
97111
},
98112
"autoload-dev": {
99113
"psr-4": {
100-
"EzSystems\\PlatformInstallerBundleTests\\": "eZ/Bundle/PlatformInstallerBundle/tests",
101114
"Ibexa\\Tests\\Bundle\\Core\\": "tests/bundle/Core",
102115
"Ibexa\\Tests\\Bundle\\Debug\\": "tests/bundle/Debug",
103116
"Ibexa\\Tests\\Bundle\\IO\\": "tests/bundle/IO",
104-
"Ibexa\\Tests\\Bundle\\Installer\\": "tests/bundle/Installer",
117+
"Ibexa\\Tests\\Bundle\\RepositoryInstaller\\": "tests/bundle/RepositoryInstaller",
105118
"Ibexa\\Tests\\Bundle\\LegacySearchEngine\\": "tests/bundle/LegacySearchEngine",
106119
"Ibexa\\Tests\\Integration\\Core\\": "tests/integration/Core",
107120
"Ibexa\\Tests\\Integration\\Debug\\": "tests/integration/Debug",
@@ -120,7 +133,7 @@
120133
},
121134
"scripts": {
122135
"check-cs": "@fix-cs --dry-run",
123-
"fix-cs": "php-cs-fixer fix -v --show-progress=dots",
136+
"fix-cs": "php-cs-fixer fix --config=.php-cs-fixer.php -v --show-progress=dots",
124137
"unit": "phpunit -c phpunit.xml",
125138
"phpstan": "phpstan analyse",
126139
"integration": [
@@ -140,7 +153,7 @@
140153
},
141154
"extra": {
142155
"branch-alias": {
143-
"dev-master": "1.3.x-dev"
156+
"dev-main": "4.3.x-dev"
144157
},
145158
"thanks": {
146159
"name": "ezsystems/ezplatform",

0 commit comments

Comments
 (0)