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

Commit 8c56784

Browse files
Prepare for sf 4
1 parent ce64696 commit 8c56784

6 files changed

Lines changed: 82 additions & 17 deletions

File tree

.travis.yml

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

Event/PrePersistEntityEvent.php

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
/**

Form/Extension/FormLogTypeExtension.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
class FormLogTypeExtension extends AbstractTypeExtension
1010
{
11-
1211
private $eventSubscriber;
1312

1413
public function __construct(EventSubscriberInterface $eventSubscriber)

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.

Resources/config/services.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,39 @@ parameters:
55

66
services:
77
oh_form_error_log.logger.db:
8+
public: true
89
class: "%oh_form_error_log.db.class%"
9-
arguments: ["@doctrine.orm.default_entity_manager", "%oh_form_error_log.db.entity.class%", "@event_dispatcher"]
10+
arguments:
11+
- "@doctrine.orm.default_entity_manager"
12+
- "%oh_form_error_log.db.entity.class%"
13+
- "@event_dispatcher"
1014
oh_form_error_log.logger:
15+
public: true
1116
class: "%oh_form_error_log.logger.class%"
12-
arguments: ["@logger"]
17+
arguments:
18+
- "@logger"
1319
tags:
1420
- { name: monolog.logger, channel: formerror }
1521
oh_form_error_log.listener.db:
22+
public: true
1623
class: "%oh_form_error_log.listener.class%"
17-
arguments: ["@oh_form_error_log.logger.db", "@request_stack"]
24+
arguments:
25+
- "@oh_form_error_log.logger.db"
26+
- "@request_stack"
1827
oh_form_error_log.listener:
28+
public: true
1929
class: "%oh_form_error_log.listener.class%"
20-
arguments: ["@oh_form_error_log.logger", "@request_stack"]
30+
arguments:
31+
- "@oh_form_error_log.logger"
32+
- "@request_stack"
2133
oh_form_subscriber:
34+
public: true
2235
class: Oh\FormErrorLogBundle\EventListener\ErrorLogSubscriber
2336
arguments:
2437
- "@oh_form_error_log.logger.manager"
2538
- "@request_stack"
2639
oh_form_extension:
40+
public: true
2741
class: Oh\FormErrorLogBundle\Form\Extension\FormLogTypeExtension
2842
arguments:
2943
- "@oh_form_subscriber"

composer.json

Lines changed: 5 additions & 5 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": [
@@ -20,7 +17,10 @@
2017
],
2118
"require": {
2219
"php": ">=5.4",
23-
"symfony/symfony": "^2|^3"
20+
"symfony/symfony": "~2.7|~3.0|~4.0"
21+
},
22+
"require-dev": {
23+
"jakub-onderka/php-parallel-lint": "^0.9.2"
2424
},
2525
"autoload": {
2626
"psr-0": {

0 commit comments

Comments
 (0)