Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/4.5' into temp_1.3_to_4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
reithor committed Dec 4, 2023
2 parents b99066b + 369a277 commit 67d9256
Show file tree
Hide file tree
Showing 5,563 changed files with 370,197 additions and 301,678 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 3 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
| ---------------------------------------- | ------------------
| **JIRA issue** | [IBX-XXXX](https://issues.ibexa.co/browse/IBX-XXXX)
| **Type** | feature/bug/improvement
| **Target Ibexa version** | `v3.3`
| **Target Ibexa version** | `v4.0`
| **BC breaks** | yes/no

<!-- Replace this comment with Pull Request description -->
Expand All @@ -11,6 +11,6 @@
- [ ] Provided PR description.
- [ ] Tested the solution manually.
- [ ] Provided automated test coverage.
- [ ] Checked that target branch is set correctly (master for features, the oldest supported for bugs).
- [ ] Checked that target branch is set correctly (main for features, the oldest supported for bugs).
- [ ] Ran PHP CS Fixer for new PHP code (use `$ composer fix-cs`).
- [ ] Asked for a review (ping `@ezsystems/engineering-team`).
- [ ] Asked for a review (ping `@ibexa/engineering`).
1 change: 0 additions & 1 deletion .github/workflows/browser-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main
with:
project-edition: 'oss'
project-version: '^3.3.x-dev'
test-setup-phase-1: '--mode=standard --profile=core --suite=setup'
test-suite: "--mode=standard --profile=core --tags='~@broken&&~@setup'"
secrets:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
push:
branches:
- master
- main
- '[0-9]+.[0-9]+'
pull_request: ~

Expand Down Expand Up @@ -42,7 +42,6 @@ jobs:
fail-fast: false
matrix:
php:
- '7.3'
- '7.4'
- '8.0'
- '8.1'
Expand Down Expand Up @@ -98,7 +97,6 @@ jobs:
fail-fast: false
matrix:
php:
- '7.3'
- '7.4'
- '8.0'
- '8.1'
Expand Down Expand Up @@ -224,7 +222,9 @@ jobs:
coverage: none

- name: Add solr dependency
run: composer require --no-update "ezsystems/ezplatform-solr-search-engine:^3.3@dev"
run: |
VERSION=$(jq -r '.extra | ."branch-alias" | ."dev-main"' < composer.json)
composer require --no-update "ibexa/solr:$VERSION"
- uses: "ramsey/composer-install@v1"
with:
Expand All @@ -236,4 +236,3 @@ jobs:
CUSTOM_CACHE_POOL: singleredis
CACHE_HOST: 127.0.0.1
CORES_SETUP: single

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
config.php
doc/apidoc/
docblox.xml
composer.phar
Expand Down
23 changes: 0 additions & 23 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,8 @@
->setFinder(
PhpCsFixer\Finder::create()
->in([
__DIR__ . '/eZ',
__DIR__ . '/src',
__DIR__ . '/tests',
])
->exclude(
[
'Bundle/EzPublishCoreBundle/Tests/DependencyInjection/Fixtures',
'Publish/API/Repository/Tests/FieldType/_fixtures',
'Publish/API/Repository/Tests/_fixtures',
'Publish/Core/FieldType/Tests/Url/Gateway/_fixtures',
'Publish/Core/IO/Tests/_fixtures',
'Publish/Core/MVC/Symfony/Templating/Tests/Twig/Extension/_fixtures',
'Publish/Core/Persistence/Legacy/Tests/Content/Location/Gateway/_fixtures',
'Publish/Core/Persistence/Legacy/Tests/Content/Type/Gateway/_fixtures',
'Publish/Core/Persistence/Legacy/Tests/Content/Type/_fixtures',
'Publish/Core/Persistence/Legacy/Tests/Content/UrlAlias/Gateway/_fixtures',
'Publish/Core/Persistence/Legacy/Tests/Content/UrlAlias/_fixtures',
'Publish/Core/Persistence/Legacy/Tests/Content/UrlWildcard/Gateway/_fixtures',
'Publish/Core/Persistence/Legacy/Tests/Content/_fixtures',
'Publish/Core/Persistence/Legacy/Tests/_fixtures',
'Publish/Core/Persistence/Tests/TransformationProcessor/_fixtures',
'Publish/Core/Repository/Tests/Service/Integration/Legacy/_fixtures',
'Publish/Core/Search/Legacy/Tests/_fixtures',
'Publish/SPI/Tests/FieldType/_fixtures',
]
)
->files()->name('*.php')
);
23 changes: 11 additions & 12 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ Ibexa Kernel also aims to provide additional features for the MVC layer (Symfony
## Current Organization

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

Backend:
- [eZ/Publish/API](eZ/Publish/API) - the definition of stable interfaces for the PHP *Public* API, mainly Content *Repository API*.
- [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.
- [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.
- [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`.
- [src/contracts](src/contracts) - the definition of stable interfaces for the PHP *Public* API, mainly Content *Repository API*.
- [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.
- [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`.

## Testing Locally

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

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

At this point you should be able to run unit tests:
```bash
php -d memory_limit=-1 vendor/bin/phpunit
composer unit
```

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

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

## COPYRIGHT

Expand Down
47 changes: 0 additions & 47 deletions appveyor.yml

This file was deleted.

20 changes: 0 additions & 20 deletions bin/extract-translations.sh

This file was deleted.

23 changes: 1 addition & 22 deletions bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,33 +1,12 @@
<?php

/**
* File containing the bootstrapping of eZ Publish API for unit test use.
*
* Setups class loading.
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

use Symfony\Bridge\PhpUnit\ClockMock;
use Symfony\Component\HttpFoundation\Request;

// Get global config.php settings

if (!file_exists(__DIR__ . '/config.php')) {
if (!symlink(__DIR__ . '/config.php-DEVELOPMENT', __DIR__ . '/config.php')) {
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.');
}
}

if (!($settings = include(__DIR__ . '/config.php'))) {
throw new \RuntimeException('Could not read config.php. Copy config.php-DEVELOPMENT to config.php and customize it to your needs.');
}

// Class alias used for BC
// Enables old code which still extends non namespaced TestCase to work
class_alias('PHPUnit\Framework\TestCase', 'PHPUnit_Framework_TestCase');

// Register ClockMock for Request class before any tests are run
// https://github.com/symfony/symfony/issues/28259
ClockMock::register(Request::class);
Expand Down
60 changes: 38 additions & 22 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "ezsystems/ezplatform-kernel",
"description": "Kernel used by ezsystems/ezplatform and derivatives. Provides the Content Repository, its APIs, and the application's Symfony framework integration.",
"homepage": "https://ezplatform.com",
"license": "GPL-2.0-only",
"name": "ibexa/core",
"description": "Ibexa DXP and Open Source core. Provides the Content Repository, its APIs, and the application's Symfony framework integration.",
"homepage": "https://ibexa.co",
"license": "(GPL-2.0-only or proprietary)",
"suggest": {
"php-64bit": "For support of more than 30 languages, a 64bit php installation on all involved prod/dev machines is required"
},
"require": {
"php": "^7.3 || ^8.0",
"php": "^7.4 || ^8.0",
"ext-ctype": "*",
"ext-fileinfo": "*",
"ext-intl": "*",
Expand All @@ -27,16 +27,18 @@
"symfony/mime": "^5.3.0",
"symfony/translation": "^5.3.0",
"symfony/yaml": "^5.3.0",
"symfony/polyfill-php80": "^1.27",
"symfony/security-core": "^5.3.0",
"symfony/security-http": "^5.3.0",
"symfony/security-bundle": "^5.3.0",
"symfony/serializer": "^5.3.0",
"symfony/http-client": "^5.3.0",
"symfony/http-kernel": "^5.3.0",
"symfony/console": "^5.3.0",
"symfony/expression-language": "^5.3.0",
"symfony/validator": "^5.3.0",
"symfony/var-dumper": "^5.3.0",
"ezsystems/doctrine-dbal-schema": "^1.0@dev",
"ibexa/doctrine-schema": "~4.5.0@dev",
"symfony-cmf/routing": "^2.3",
"guzzlehttp/guzzle": "^6.5",
"php-http/guzzle6-adapter": "^2.0",
Expand All @@ -46,7 +48,8 @@
"doctrine/orm": "^2.7",
"doctrine/doctrine-bundle": "^2.0",
"liip/imagine-bundle": "^2.3",
"oneup/flysystem-bundle": "^3.4",
"oneup/flysystem-bundle": "^4.4.2",
"league/flysystem-memory": "^2.0.6",
"friendsofsymfony/http-cache-bundle": "^2.8",
"sensio/framework-extra-bundle": "^6.1",
"jms/translation-bundle": "^1.5",
Expand All @@ -62,14 +65,15 @@
"behat/behat": "^3.6.1",
"jenner/simple_fork": "^1.2",
"friends-of-behat/mink-extension": "^2.4",
"league/flysystem-memory": "^1.0",
"ibexa/ci-scripts": "^0.1@dev",
"ezsystems/ezplatform-code-style": "^2.0",
"ibexa/ci-scripts": "^0.2@dev",
"ibexa/code-style": "^1.0",
"phpunit/phpunit": "^8.2",
"matthiasnoback/symfony-dependency-injection-test": "^4.1",
"symfony/phpunit-bridge": "^5.1",
"symfony/proxy-manager-bridge": "^5.3",
"phpstan/phpstan": "^1.2"
"phpstan/phpstan": "^1.2",
"phpstan/phpstan-symfony": "^1.3",
"phpstan/phpstan-phpunit": "^1.3"
},
"conflict": {
"friendsofphp/php-cs-fixer": "3.5.0",
Expand All @@ -80,29 +84,41 @@
"phpunit/phpunit": "8.4.0"
},
"replace": {
"ezsystems/ezpublish-kernel": "*"
"ezsystems/ezplatform-kernel": "*"
},
"autoload": {
"psr-4": {
"EzSystems\\PlatformInstallerBundle\\": "eZ/Bundle/PlatformInstallerBundle/src",
"eZ\\": "eZ",
"Ibexa\\Bundle\\Core\\": "src/bundle/Core",
"Ibexa\\Bundle\\Debug\\": "src/bundle/Debug",
"Ibexa\\Bundle\\IO\\": "src/bundle/IO",
"Ibexa\\Bundle\\Installer\\": "src/bundle/Installer",
"Ibexa\\Bundle\\RepositoryInstaller\\": "src/bundle/RepositoryInstaller",
"Ibexa\\Bundle\\LegacySearchEngine\\": "src/bundle/LegacySearchEngine",
"Ibexa\\Contracts\\Core\\": "src/contracts",
"Ibexa\\Core\\": "src/lib"
},
"classmap": ["tests/integration/Core/RepositoryTestCase.php"]
"Ibexa\\Core\\": "src/lib",
"Ibexa\\Tests\\Core\\": "tests/lib",
"Ibexa\\Tests\\Integration\\Core\\": "tests/integration/Core",
"Ibexa\\Tests\\Bundle\\Core\\": "tests/bundle/Core",
"eZ\\Publish\\API\\Repository\\Tests\\": "src/contracts/Test/Repository",
"eZ\\Publish\\SPI\\Tests\\": "src/contracts/Test",
"eZ\\Publish\\API\\": "src/contracts",
"eZ\\Publish\\SPI\\": "src/contracts",
"eZ\\Publish\\Core\\": "src/lib",
"eZ\\Bundle\\EzPublishCoreBundle\\": "src/bundle/Core",
"eZ\\Bundle\\EzPublishDebugBundle\\": "src/bundle/Debug",
"eZ\\Bundle\\EzPublishIOBundle\\": "src/bundle/IO",
"eZ\\Bundle\\EzPublishLegacySearchEngineBundle\\": "src/bundle/LegacySearchEngine",
"eZ\\Bundle\\EzPublishCoreBundle\\Tests\\": "tests/bundle/Core",
"eZ\\Publish\\Core\\MVC\\Symfony\\Templating\\Tests\\": "tests/lib/MVC/Symfony/Templating",
"eZ\\Publish\\Core\\Persistence\\Legacy\\Tests\\": "tests/lib/Persistence/Legacy",
"EzSystems\\PlatformInstallerBundle\\": "src/bundle/RepositoryInstaller"
}
},
"autoload-dev": {
"psr-4": {
"EzSystems\\PlatformInstallerBundleTests\\": "eZ/Bundle/PlatformInstallerBundle/tests",
"Ibexa\\Tests\\Bundle\\Core\\": "tests/bundle/Core",
"Ibexa\\Tests\\Bundle\\Debug\\": "tests/bundle/Debug",
"Ibexa\\Tests\\Bundle\\IO\\": "tests/bundle/IO",
"Ibexa\\Tests\\Bundle\\Installer\\": "tests/bundle/Installer",
"Ibexa\\Tests\\Bundle\\RepositoryInstaller\\": "tests/bundle/RepositoryInstaller",
"Ibexa\\Tests\\Bundle\\LegacySearchEngine\\": "tests/bundle/LegacySearchEngine",
"Ibexa\\Tests\\Integration\\Core\\": "tests/integration/Core",
"Ibexa\\Tests\\Integration\\Debug\\": "tests/integration/Debug",
Expand All @@ -121,7 +137,7 @@
},
"scripts": {
"check-cs": "@fix-cs --dry-run",
"fix-cs": "php-cs-fixer fix -v --show-progress=dots",
"fix-cs": "php-cs-fixer fix --config=.php-cs-fixer.php -v --show-progress=dots",
"unit": "phpunit -c phpunit.xml",
"phpstan": "phpstan analyse",
"integration": [
Expand All @@ -141,7 +157,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.3.x-dev"
"dev-main": "4.5.x-dev"
},
"thanks": {
"name": "ezsystems/ezplatform",
Expand Down
Loading

0 comments on commit 67d9256

Please sign in to comment.