Skip to content

Commit

Permalink
Global update of bundle to support Ibexa 3.3.*
Browse files Browse the repository at this point in the history
  • Loading branch information
fkeloks committed Aug 13, 2022
1 parent 0082fa0 commit d9008f6
Show file tree
Hide file tree
Showing 30 changed files with 581 additions and 598 deletions.
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist: xenial
dist: focal
language: php

env:
Expand All @@ -8,15 +8,15 @@ env:
matrix:
fast_finish: true
include:
- php: 7.1
- php: 7.1
env: SETUP=lowest
- php: 7.2
- php: 7.2
env: SETUP=lowest
- php: 7.3
- php: 7.3
env: SETUP=lowest
- php: 8.0
- php: 8.0
env: SETUP=lowest
- php: 8.1
- php: 8.1
env: SETUP=lowest

cache:
directories:
Expand Down
68 changes: 38 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
EzPlatformLogsUiBundle
[![Build Status](https://travis-ci.com/fkeloks/ezplatform-logs-ui.svg?branch=master)](https://travis-ci.com/fkeloks/ezplatform-logs-ui)
[![License](https://poser.pugx.org/fkeloks/ezplatform-logs-ui/license)](https://packagist.org/packages/fkeloks/ezplatform-logs-ui)
IbexaLogsUiBundle
[![Build Status](https://travis-ci.com/fkeloks/ibexa-logs-ui.svg?branch=master)](https://travis-ci.com/fkeloks/ibexa-logs-ui)
[![License](https://poser.pugx.org/fkeloks/ibexa-logs-ui/license)](https://packagist.org/packages/fkeloks/ibexa-logs-ui)
============

Symfony bundle dedicated to eZ Platform, to add a log management interface to the back office.
Symfony bundle dedicated to Ibexa, to add a log management interface to the back office.

![Screenshot of EzPlatformLogsUiBundle](https://i.imgur.com/Dlr1LFs.png)
![Screenshot of IbexaLogsUiBundle](snapshot.jpg)

**Details**:

* Author: Florian Bouché
* Licence: [MIT]([https://opensource.org/licenses/MIT](https://opensource.org/licenses/MIT))

**Available translations**:

* en (English)
* fr (French)

## Requirements

* php: ^7.1.3
* ezsystems/ezplatform: 2.5.*
* ezsystems/ezplatform-admin-ui: ^1.5
* php: >=7.3
* ibexa: 3.3.*

:warning: Warning, in its current version, the bundle **only supports** log files in `Monolog/LineFormatter` format.
[LineFormatter from Github](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Formatter/LineFormatter.php)
Expand All @@ -28,38 +33,41 @@ Open a command console, enter your project directory and execute the
following command to download the latest stable version of this bundle:

```console
$ composer require fkeloks/ezplatform-logs-ui
$ composer require fkeloks/ibexa-logs-ui
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md) of the Composer documentation.
This command requires you to have Composer installed globally, as explained in
the [installation chapter](https://getcomposer.org/doc/00-intro.md) of the Composer documentation.

### Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:
Add `IbexaLogsUi\Bundle\IbexaLogsUiBundle::class => ['dev' => true]`, in the `config/bundles.php` file, just before
the `EzPlatformAdminUiBundle` line.

Like this:

```php
// app/AppKernel.php

class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
// ...
new EzPlatformLogsUi\Bundle\EzPlatformLogsUiBundle(),
];
}
}
<?php

return [
// ...
IbexaLogsUi\Bundle\IbexaLogsUiBundle::class => ['dev' => true],
EzSystems\EzPlatformAdminUiBundle\EzPlatformAdminUiBundle::class => ['all' => true],
// ...
];
```

### Step 3: Import EzPlatformLogsUi routing files
Now that you have activated and configured the bundle, all that is left to do is import the EzPlatformLogsUi routing files.
If desired, the bundle can be activated in prod mode by replacing `dev` with `prod`.

### Step 3: Import bundle routing file

```yaml
# app/config/routing.yml
# app/config/routing.yml or config/routing.yaml

# EzPlatformLogsUiBundle
_ezplatform_logs_ui:
resource: "@EzPlatformLogsUiBundle/Resources/config/routing.yml"
prefix: /
_ibexa_logs_ui:
resource: "@IbexaLogsUiBundle/Resources/config/routing.yml"
```
## License
This package is licensed under the [MIT license](LICENSE).
22 changes: 13 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "fkeloks/ezplatform-logs-ui",
"name": "fkeloks/ibexa-logs-ui",
"description": "",
"keywords": ["ezplatform", "logs", "bundle", "ui", "admin"],
"keywords": ["ibexa", "logs", "bundle", "ui", "admin"],
"type": "symfony-bundle",
"homepage": "https://github.com/fkeloks/ezplatform-logs-ui",
"homepage": "https://github.com/fkeloks/ibexa-logs-ui",
"license": "MIT",
"authors": [
{
Expand All @@ -13,19 +13,23 @@
],
"autoload": {
"psr-4": {
"EzPlatformLogsUi\\Bundle\\": "src/"
"IbexaLogsUi\\Bundle\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"EzPlatformLogsUi\\Tests\\": "tests/"
"IbexaLogsUi\\Tests\\": "tests/"
}
},
"require": {
"php": "^7.1.3",
"ezsystems/ezplatform-admin-ui": "1.5.*",
"phpunit/phpunit": "7.5.*",
"symfony/cache": "^3.4"
"php": ">=7.3",
"ext-json": "*",
"ezsystems/ezplatform-admin-ui": "^2.3",
"monolog/monolog": "^2.2",
"symfony/cache": "^5.2"
},
"require-dev": {
"phpunit/phpunit": "^8.5"
},
"scripts": {
"tests": "phpunit"
Expand Down
12 changes: 3 additions & 9 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/8.5/phpunit.xsd"
backupGlobals="false"
colors="true"
>
Expand All @@ -14,15 +14,9 @@
</php>

<testsuites>
<testsuite name="EzPlatformLogsUi Test Suite">
<directory>tests</directory>
<testsuite name="IbexaLogsUi Test Suite">
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>src</directory>
</whitelist>
</filter>

</phpunit>
Binary file added snapshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d9008f6

Please sign in to comment.