Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto add error logging to all forms #3

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
7f8f605
added entity and changed the repository name to be prefixed with lend…
Jan 13, 2015
0a1085d
fixed parameter value
Jan 13, 2015
34553e6
renamed entity name
Jan 13, 2015
0c6d64d
used a form extension to subscribe the listener instead of injecting …
Jan 13, 2015
bdf262d
added a created at value to the entity
Jan 13, 2015
c6fc807
renamed field createdAt to just created
Feb 5, 2015
c38063e
Support for Symfony3
titolendable Jul 15, 2016
1ada491
updated service definitions
titolendable Jul 18, 2016
f0f068b
Set dependency on RequestStack
titolendable Jul 18, 2016
134bb91
Update services.yml
titolendable Jul 18, 2016
ec71eb9
Update ErrorLogSubscriber.php
titolendable Jul 19, 2016
23d0f90
added event before storing entity
Sep 20, 2016
0832e87
changed entity to a mappedsuperclass so we can redifine it as an enti…
Sep 20, 2016
db7346c
Removed composer.lock, depend on symfony/symfony for now (should be e…
ben-challis Feb 9, 2017
fa98466
Serialize the errored value as we'd like to catch arrays and other un…
martin-georgiev Oct 25, 2017
fee656a
Serialize the errored value as we'd like to catch arrays and other un…
martin-georgiev Oct 25, 2017
2144335
Alias namespace import to avoid conflict with current class name
martin-georgiev Oct 25, 2017
444bd29
PHP resources cannot be serialized so default in this case to empty s…
martin-georgiev Oct 31, 2017
ce64696
Remove unused trait import
martin-georgiev Oct 31, 2017
eb0f16f
Merge pull request #1 from Lendable/bugfix/php-resources-cant-be-seri…
ppamment Nov 17, 2017
8c56784
Prepare for sf 4
martin-georgiev Nov 17, 2017
f461510
Fix travis script path
martin-georgiev Nov 18, 2017
8eb76bc
Bump min supported php version to 5.5
martin-georgiev Nov 18, 2017
7238353
Change autoloading strategy to PSR-4
martin-georgiev Nov 18, 2017
8870791
Merge pull request #2 from Lendable/feature/symfony4-ready
martin-georgiev Nov 24, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/vendor
/.idea
composer.lock
50 changes: 50 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
language: php

sudo: false

cache:
directories:
- $HOME/.composer/cache

matrix:
include:
- php: 5.5
env: SYMFONY_VERSION=2.7.*
- php: 5.6
env: SYMFONY_VERSION=2.7.*
- php: 7.0
env: SYMFONY_VERSION=2.7.*
- php: 7.0
env: SYMFONY_VERSION=3.3.*
- php: 7.0
env: DEPENDENCIES=beta
- php: 7.1
env: SYMFONY_VERSION=2.7.*
- php: 7.1
env: SYMFONY_VERSION=3.3.*
- php: 7.1
env: DEPENDENCIES=beta
- php: nightly
env: SYMFONY_VERSION=2.7.*
- php: nightly
env: SYMFONY_VERSION=3.3.*
- php: nightly
env: DEPENDENCIES=beta
allow_failures:
- php: nightly

env:
global:
- deps=no

before_install:
- composer self-update
# Set composer minimum-stability configuration filter to beta versions
- if [ "$DEPENDENCIES" = "beta" ]; then perl -pi -e 's/^}$/,"minimum-stability":"beta"}/' composer.json; fi;

install:
- if [ "$deps" = "no" ]; then composer update; fi;
- if [ "$deps" = "low" ]; then composer --prefer-lowest --prefer-stable update; fi;

script:
- vendor/jakub-onderka/php-parallel-lint/parallel-lint --exclude vendor .
135 changes: 0 additions & 135 deletions EventListener/ErrorLogSubscriber.php

This file was deleted.

41 changes: 0 additions & 41 deletions Logger/DatabaseLogger.php

This file was deleted.

41 changes: 0 additions & 41 deletions Logger/Logger.php

This file was deleted.

10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ Installation
------------

This bundle is alpha stability due to the lack of testing on different form
types. Your composer.json needs to reflect that by setting the
minimum-stability to "alpha" or "dev"

"minimum-stability": "alpha"
types.

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

"oh/form-error-log-bundle": "dev-master"
"lendable/form-error-log-bundle": "~1.0"

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

Expand Down Expand Up @@ -271,4 +268,5 @@ Todo
Credits
-------

* Ollie Harridge (ollietb) as the author.
* Ollie Harridge (ollietb) as the original author.
* Lendable Ltd as the maintainer.
23 changes: 0 additions & 23 deletions Resources/config/services.yml

This file was deleted.

17 changes: 0 additions & 17 deletions Tests/Controller/DefaultControllerTest.php

This file was deleted.

48 changes: 27 additions & 21 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
{
"name": "oh/form-error-log-bundle",
"type": "symfony-bundle",
"description": "Log form errors",
"keywords": ["form", "Symfony2"],
"homepage": "https://github.com/ollieLtd/OhFormErrorLogBundle",
"license": "MIT",
"authors": [
{
"name": "Ollie Harridge",
"email": "[email protected]"
}
],
"require": {
"php": ">=5.3.2",
"symfony/framework-bundle": "~2.1"
"name": "lendable/form-error-log-bundle",
"type": "symfony-bundle",
"description": "Log form errors",
"keywords": ["symfony", "bundle", "lendable"],
"homepage": "https://github.com/ollieLtd/OhFormErrorLogBundle",
"license": "MIT",
"authors": [
{
"name": "Ollie Harridge",
"email": "[email protected]"
},
"autoload": {
"psr-0": {
"Oh\\FormErrorLogBundle": ""
}
},
"target-dir": "Oh/FormErrorLogBundle"
{
"name": "Lendable Ltd",
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {
"Oh\\FormErrorLogBundle\\": "src/"
}
},
"require": {
"php": ">=5.5",
"symfony/symfony": "~2.7|~3.0|~4.0"
},
"require-dev": {
"jakub-onderka/php-parallel-lint": "^0.9.2"
}
}
Loading