Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit 8870791

Browse files
Merge pull request #2 from Lendable/feature/symfony4-ready
Support Symfony 4
2 parents eb0f16f + 7238353 commit 8870791

17 files changed

+87
-25
lines changed

.travis.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
language: php
2+
3+
sudo: false
4+
5+
cache:
6+
directories:
7+
- $HOME/.composer/cache
8+
9+
matrix:
10+
include:
11+
- php: 5.5
12+
env: SYMFONY_VERSION=2.7.*
13+
- php: 5.6
14+
env: SYMFONY_VERSION=2.7.*
15+
- php: 7.0
16+
env: SYMFONY_VERSION=2.7.*
17+
- php: 7.0
18+
env: SYMFONY_VERSION=3.3.*
19+
- php: 7.0
20+
env: DEPENDENCIES=beta
21+
- php: 7.1
22+
env: SYMFONY_VERSION=2.7.*
23+
- php: 7.1
24+
env: SYMFONY_VERSION=3.3.*
25+
- php: 7.1
26+
env: DEPENDENCIES=beta
27+
- php: nightly
28+
env: SYMFONY_VERSION=2.7.*
29+
- php: nightly
30+
env: SYMFONY_VERSION=3.3.*
31+
- php: nightly
32+
env: DEPENDENCIES=beta
33+
allow_failures:
34+
- php: nightly
35+
36+
env:
37+
global:
38+
- deps=no
39+
40+
before_install:
41+
- composer self-update
42+
# Set composer minimum-stability configuration filter to beta versions
43+
- if [ "$DEPENDENCIES" = "beta" ]; then perl -pi -e 's/^}$/,"minimum-stability":"beta"}/' composer.json; fi;
44+
45+
install:
46+
- if [ "$deps" = "no" ]; then composer update; fi;
47+
- if [ "$deps" = "low" ]; then composer --prefer-lowest --prefer-stable update; fi;
48+
49+
script:
50+
- vendor/jakub-onderka/php-parallel-lint/parallel-lint --exclude vendor .

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,11 @@ Installation
1919
------------
2020

2121
This bundle is alpha stability due to the lack of testing on different form
22-
types. Your composer.json needs to reflect that by setting the
23-
minimum-stability to "alpha" or "dev"
24-
25-
"minimum-stability": "alpha"
22+
types.
2623

2724
Install this bundle as usual by adding to composer.json:
2825

29-
"oh/form-error-log-bundle": "dev-master"
26+
"lendable/form-error-log-bundle": "~1.0"
3027

3128
Register the bundle in `app/AppKernel.php`:
3229

@@ -271,4 +268,5 @@ Todo
271268
Credits
272269
-------
273270

274-
* Ollie Harridge (ollietb) as the author.
271+
* Ollie Harridge (ollietb) as the original author.
272+
* Lendable Ltd as the maintainer.

composer.json

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
"name": "lendable/form-error-log-bundle",
33
"type": "symfony-bundle",
44
"description": "Log form errors",
5-
"keywords": [
6-
"form",
7-
"Symfony2"
8-
],
5+
"keywords": ["symfony", "bundle", "lendable"],
96
"homepage": "https://github.com/ollieLtd/OhFormErrorLogBundle",
107
"license": "MIT",
118
"authors": [
@@ -14,18 +11,20 @@
1411
"email": "code@oll.ie"
1512
},
1613
{
17-
"name": "Lendable Developers",
14+
"name": "Lendable Ltd",
1815
"email": "dev@lendable.co.uk"
1916
}
2017
],
21-
"require": {
22-
"php": ">=5.4",
23-
"symfony/symfony": "^2|^3"
24-
},
2518
"autoload": {
26-
"psr-0": {
27-
"Oh\\FormErrorLogBundle": ""
19+
"psr-4": {
20+
"Oh\\FormErrorLogBundle\\": "src/"
2821
}
2922
},
30-
"target-dir": "Oh/FormErrorLogBundle"
23+
"require": {
24+
"php": ">=5.5",
25+
"symfony/symfony": "~2.7|~3.0|~4.0"
26+
},
27+
"require-dev": {
28+
"jakub-onderka/php-parallel-lint": "^0.9.2"
29+
}
3130
}

DependencyInjection/OhFormErrorLogExtension.php renamed to src/DependencyInjection/OhFormErrorLogExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function load(array $configs, ContainerBuilder $container)
2525
$container->setAlias('oh_form_error_log.logger.manager', $config['logger']);
2626
$container->setParameter('oh_form_error_log.db.entity.class', $config['db_entity_class']);
2727

28-
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
28+
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
2929
$loader->load('services.yml');
3030
}
3131
}
File renamed without changes.
File renamed without changes.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
class PrePersistEntityEvent extends Event
99
{
10-
/** @var FormErrorLogEntityInterface */
10+
/**
11+
* @var FormErrorLogEntityInterface
12+
*/
1113
private $entity;
1214

1315
/**

0 commit comments

Comments
 (0)