laravel-ardent / ardent

Self-validating, secure and smart models for Laravel's Eloquent ORM
BSD 3-Clause "New" or "Revised" License
1.39k stars 211 forks source link

Missing dependency when using standalone - Symfony config #139

Open PeterSchumacher opened 10 years ago

PeterSchumacher commented 10 years ago

When using standalone, 'symfony/config' must be added manually to composer.json

At the moment it's,

"symfony/config": "v2.4.0"

If not added, an error about missing Symfony classes shows up when trying to get validation errors.

I actually think it's a missing dependency in the composer file for Symfony translation.

igorsantos07 commented 10 years ago

Are you using 2.3.1? That might be something new from Laravel 4.1. I'll take a look when I get back to my computer. On Dec 22, 2013 11:45 PM, "Peter Schumacher" notifications@github.com wrote:

When using standalone, 'symfony/config' must be added manually to composer.json

At the moment it's,

"symfony/config": "v2.4.0"

If not added, an error about missing Symfony classes shows up when trying to get validation errors.

I actually think it's a missing dependency in the composer file for Symfony translation.

— Reply to this email directly or view it on GitHubhttps://github.com/laravelbook/ardent/issues/139 .

PeterSchumacher commented 10 years ago

Here's my require lines from composer and the actually installed packages.

"require": {
    "luracast/restler": "v3.0.0",
    "laravelbook/ardent": "dev-master",
    "symfony/config": "v2.4.0"
},

composer show -i illuminate/container v4.1.9 illuminate/database v4.1.9 illuminate/events v4.1.9 illuminate/support v4.1.9 illuminate/validation v4.1.9 laravelbook/ardent dev-master b2bf337 Self-validating smart models for Laravel 4's Eloquent O/RM luracast/restler v3.0.0 Restler is a simple and effective multi-format Web API Server. nesbot/carbon 1.7.0 A simple API extension for DateTime. symfony/config v2.4.0 Symfony Config Component symfony/filesystem v2.4.0 Symfony Filesystem Component symfony/http-foundation v2.4.0 Symfony HttpFoundation Component symfony/translation v2.4.0 Symfony Translation Component

Thank you!

igorsantos07 commented 10 years ago

Nice to see you're going with the same duo I was using when I started working in Ardent: Ardent+Restler. Those are great projects and I'm sure you'll like it ;) Furthermore, I would recommend you to take a look at Codeception for API testing (:

Anyway, I'll take a look at the issue now. Thx!

igorsantos07 commented 10 years ago

Looks like validation depends on translation that depends-dev + suggests config. Theoretically it should require it instead. Could you confirm this wrong behaviour and maybe fill a bug with them?