Commit Graph
206 Commits
Author SHA1 Message Date
Samuel ROZE 23b397fd5f Remove the path of the kernel as autoloadable 2017-06-07 09:26:13 +01:00
Samuel ROZE 47dcdf198a Rename the @When step 2017-06-07 09:25:31 +01:00
Samuel ROZE d31e56a20a Add the Behat recipe 2017-06-05 19:14:00 +01:00
SymfonyandGitHub 5eacde060f Merge pull request #91 from symfony/tests-exclude 2017-06-02 14:24:39 -07:00
Fabien Potencier a86b340cf8 excluded Tests from being scanned 2017-06-02 09:41:34 -07:00
Fabien Potencier 9d13de145c bug #88 [doctrine/doctrine-bundle] Use apcu provider instead of deprecated apc (teohhanhui)
This PR was merged into the master branch.

Discussion
----------

[doctrine/doctrine-bundle] Use apcu provider instead of deprecated apc

| Q             | A
| ------------- | ---
| License       | MIT

It's time to move forward.

`doctrine/cache` since [1.6.0](https://github.com/doctrine/cache/releases/tag/v1.6.0) (see doctrine/cache#115):
* `ApcuCache` added
* `ApcCache` deprecated

`doctrine/doctrine-cache-bundle` since [1.3.0](https://github.com/doctrine/DoctrineCacheBundle/releases/tag/1.3.0) (see doctrine/DoctrineCacheBundle#86):
* `apcu` added in the configuration

Commits
-------

1aaa26a [doctrine/doctrine-bundle] Use apcu provider instead of deprecated apc
2017-05-31 11:30:54 -07:00
Fabien Potencier 34fbe10a31 bug #90 [symfony] Correct versions for symfony/orm-pack and symfony/profiler-pack (teohhanhui)
This PR was merged into the master branch.

Discussion
----------

[symfony] Correct versions for symfony/orm-pack and symfony/profiler-pack

| Q             | A
| ------------- | ---
| License       | MIT

Also added aliases `doctrine-orm` and `doctrine` for `symfony/orm-pack` to better address symfony/flex#28 and symfony/recipes#24.

Commits
-------

38f8251 [symfony] Correct versions for symfony/orm-pack and symfony/profiler-pack
2017-05-31 10:17:28 -07:00
Teoh Han Hui 38f8251b6f [symfony] Correct versions for symfony/orm-pack and symfony/profiler-pack 2017-05-31 17:56:13 +08:00
Teoh Han Hui 1aaa26ad14 [doctrine/doctrine-bundle] Use apcu provider instead of deprecated apc 2017-05-31 12:54:32 +08:00
Fabien Potencier 05f2992d47 minor #83 Rename .gitkeep files to .gitignore (teohhanhui)
This PR was merged into the master branch.

Discussion
----------

Rename .gitkeep files to .gitignore

| Q | A |
| --- | --- |
| License | MIT |

Let's not keep this legacy convention. *(pun intended)*

The **official** guidance is to use an empty `.gitignore` file.

See

https://git.wiki.kernel.org/index.php/GitFaq#Can_I_add_empty_directories.3F

and

https://git.wiki.kernel.org/index.php/SvnMigration#Empty_directories

Commits
-------

0480f8c Rename .gitkeep files to .gitignore
2017-05-30 13:09:48 -07:00
Fabien Potencier a6efd2bdce bug #85 [lexik/jwt-authentication-bundle] Fix generate-jwt-keys target in Makefile (teohhanhui)
This PR was merged into the master branch.

Discussion
----------

[lexik/jwt-authentication-bundle] Fix generate-jwt-keys target in Makefile

| Q | A |
| --- | --- |
| License | MIT |

The definition of the `generate-jwt-keys` target broke the `Makefile` when the `openssl` binary is not available.

Commits
-------

651c84f [lexik/jwt-authentication-bundle] Fix generate-jwt-keys target in Makefile
2017-05-30 11:03:28 -07:00
Fabien Potencier e440a0bb32 added the License in the PR template 2017-05-30 06:27:39 -07:00
Teoh Han Hui 651c84f968 [lexik/jwt-authentication-bundle] Fix generate-jwt-keys target in Makefile 2017-05-30 19:32:23 +08:00
Teoh Han Hui 0480f8c563 Rename .gitkeep files to .gitignore 2017-05-30 18:02:25 +08:00
Fabien Potencier 2911cba850 feature #77 Add the profiler pack (fabpot)
This PR was merged into the master branch.

Discussion
----------

Add the profiler pack

fixed symfony/flex#90

License MIT

Commits
-------

5824ee7 added the profiler pack
2017-05-27 10:29:17 -07:00
Fabien Potencier 5824ee767f added the profiler pack 2017-05-27 10:04:10 -07:00
Fabien Potencier a415b1db85 removed obsolete note 2017-05-27 08:39:41 -07:00
Fabien Potencier 413ce3fd2f minor #76 [Doc] Add missing doc about the "container" configurator (Pierstoval)
This PR was squashed before being merged into the master branch (closes #76).

Discussion
----------

[Doc] Add missing doc about the "container" configurator

| Q             | A
| ------------- | ---
| License       | MIT

Was missing, not sure it was by purpose or not, but I propose to add it anyway, feel free to close it if you think it's not relevant.

Just about the bottom-note I added, it's because of [this "fixme" comment](https://github.com/symfony/flex/blob/master/src/Configurator/ContainerConfigurator.php#L27-L30), I'm not sure this warning should be present in the docs or if we shouldn't tell about it as the "fixme" might be solved one day 🤔

Commits
-------

c101117 [Doc] Add missing doc about the "container" configurator
2017-05-27 08:39:10 -07:00
Alex Rock AnceletandFabien Potencier c1011171c6 [Doc] Add missing doc about the "container" configurator 2017-05-27 08:39:09 -07:00
Fabien Potencier 78e7dcaf08 feature #75 [Translation] Allow using "etc/translations" to store translations files (Pierstoval)
This PR was squashed before being merged into the master branch (closes #75).

Discussion
----------

[Translation] Allow using "etc/translations" to store translations files

| Q             | A
| ------------- | ---
| License       | MIT

For now, translations are stored in Symfony's default directory which is `%kernel.root_dir%/Resources/translations`, resolved to `src/Resources/translations`.

I find it much more convenient to store it in `etc/translations`.

I'm not sure about some things though:

* The yaml file name, `translation.yaml`, as this config is part of the framework and we cannot "update" the `framework.yaml` file with this recipe 😕 Maybe should I rename it `symfony_translation.yaml` or `translator`, or even maybe `symfony_translator`?
* Adding `%locale%` parameter with `en` by default. As it's not mandatory to have a `%locale%` parameter in Symfony apps anymore, I thought it would be useful to setup at least this value and add a comment to tell the user to update it depending on his/her application.

What do you think?

Commits
-------

b3dc37b [Translation] Allow using "etc/translations" to store translations files
2017-05-27 08:37:54 -07:00
Alex Rock AnceletandFabien Potencier b3dc37b54b [Translation] Allow using "etc/translations" to store translations files 2017-05-27 08:37:51 -07:00
Fabien Potencier dbea6b4af1 added a new validation rule 2017-05-25 19:16:55 +02:00
Fabien Potencier 9ea56c3fcf added a new validation rule 2017-05-25 19:06:36 +02:00
Fabien Potencier 245d351019 bug #73 [lexik/jwt-authentication-bundle] Fix configured key path (chalasr)
This PR was merged into the master branch.

Discussion
----------

[lexik/jwt-authentication-bundle] Fix configured key path

Only using `%ETC_DIR%` leads to

> Private key "etc/jwt/private.pem" does not exist or is not readable.

This fixes it by prefixing paths by `%kernel.project_dir%/` in the bundle config.

Commits
-------

7f5180d [lexik/jwt-authentication-bundle] Fix configured key path
2017-05-24 08:11:00 +02:00
Fabien Potencier 41daf7dc64 bug #74 [doctrine/doctrine-bundle] Escape DATABASE_URL env value (chalasr)
This PR was merged into the master branch.

Discussion
----------

[doctrine/doctrine-bundle] Escape DATABASE_URL env value

When requiring `doctrine/doctrine-bundle` (more often `orm-pack`), the following is added to the project `.env`:

```
DATABASE_URL=mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4&serverVersion=5.7
```
The makefile seems to parse that properly (tested on OSX and debian).
But running `source .env` from the cli (for debugging the .env vars, as shown in [dotenv docs](http://symfony.com/doc/master/components/dotenv.html)) gives

> .env:15: parse error near `&'

This fixes it by adding quotes around the value.

Commits
-------

1e60b1f [doctrine/doctrine-bundle] Escape DATABASE_URL env value
2017-05-24 08:09:39 +02:00
Robin Chalas 1e60b1f90d [doctrine/doctrine-bundle] Escape DATABASE_URL env value 2017-05-23 21:01:26 +02:00
Robin Chalas 7f5180d3f9 [lexik/jwt-authentication-bundle] Fix configured key path 2017-05-23 18:30:17 +02:00
Fabien Potencier 050655c481 feature #70 Remove version_aliases configuration setting (fabpot)
This PR was merged into the master branch.

Discussion
----------

Remove version_aliases configuration setting

`version_aliases` was a bad idea as it incurs too much manual maintenance as we need to remember to add new minor and major versions. That's fragile and we will probably forget to do it promptly. That's even worse for contributed recipes.

So, instead (and as already documented in the README, so not part of the diff), the version of the recipe if the minimum version that the recipe supports. So, if there is only one recipe for version "3.3", the recipe will be applied for all versions >= 3.3 (including 3.x, 4.x, ...).

If a version introduces changes that has an impact on the recipe , then a new directory with the version when the break appeared should be created with the new recipe, which makes total sense.

Commits
-------

07a5c67 removed version_aliases configuration setting
2017-05-20 09:55:30 +02:00
Fabien Potencier 07a5c67ace removed version_aliases configuration setting 2017-05-20 09:32:06 +02:00
Fabien Potencier 716ce4272d feature #65 Tweak configuration for app.yaml (fabpot)
This PR was merged into the master branch.

Discussion
----------

Tweak configuration for app.yaml

symfony/symfony-standard#1070

Commits
-------

7581f44 tweaked configuration for app.yaml
2017-05-20 07:50:02 +02:00
Fabien Potencier 11bd171055 bug #67 fix error exit code (xabbuh)
This PR was merged into the master branch.

Discussion
----------

fix error exit code

In case that the server could not start we should indicate the failure
with a non-zero exit code.

This addresses @stof's comment in https://github.com/symfony/recipes/pull/54#discussion_r116276643.

Commits
-------

9acb162 fix error exit code
2017-05-16 07:03:19 -07:00
Christian Flothmann 9acb162c7f fix error exit code
In case that the server could not start we should indicate the failure
with a non-zero exit code.
2017-05-16 09:23:11 +02:00
Fabien Potencier bed08a2c1a minor #66 Add a Github PR template (fabpot)
This PR was merged into the master branch.

Discussion
----------

Add a Github PR template

Commits
-------

a572667 added a PR template
2017-05-15 07:12:59 -07:00
Fabien Potencier a572667caa added a PR template 2017-05-14 10:00:44 -07:00
Fabien Potencier 7581f44af7 tweaked configuration for app.yaml 2017-05-14 09:33:30 -07:00
Fabien Potencier 2416e10255 synced phpunit config 2017-05-13 07:17:03 -07:00
Fabien Potencier 0967338d4d added a new validation rule 2017-05-12 14:19:57 -07:00
Fabien Potencier c8cc35795c feature #54 [FrameworkBundle] improve Makefile serve target (sstok)
This PR was merged into the master branch.

Discussion
----------

[FrameworkBundle] improve Makefile serve target

Related to #49, I don't know if this the best way to do it. But as the Makefile is composed I don't think it's possible to use advanced Makefile features 😟

@greg0ire suggested something like this:

```makefile
.PHONY: serve

CONSOLE=bin/console

$(CONSOLE):
    @echo 'Woops! The console does not exist'
    @exit

serve: bin/console
    bin/console list server|grep server:start
    bin/console server:start
```

But don't know if you can have multiple targets with the same name but different conditions?

Commits
-------

7a7de4b [FrameworkBundle] improve Makefile serve target
2017-05-12 08:13:04 -07:00
Sebastiaan Stok 7a7de4bd67 [FrameworkBundle] improve Makefile serve target 2017-05-12 17:03:31 +02:00
Fabien Potencier 0c159422a2 feature #62 Doctrine Migrations (Ricknox)
This PR was squashed before being merged into the master branch (closes #62).

Discussion
----------

Doctrine Migrations

This recipe adds doctrine migrations to the official Symfony recipes repository.

Commits
-------

52e1ebe Doctrine Migrations
2017-05-11 12:59:17 -07:00
Ricardo de VriesandFabien Potencier 52e1ebe6e8 Doctrine Migrations 2017-05-11 12:59:16 -07:00
Fabien Potencier 3d3eba7450 feature #60 [LexikJWTAuthenticationBundle] Add aliases (ogizanagi)
This PR was merged into the master branch.

Discussion
----------

[LexikJWTAuthenticationBundle] Add aliases

ping @chalasr

Commits
-------

4da5639 [LexikJWTAuthenticationBundle] Add aliases
2017-05-11 12:36:53 -07:00
Fabien Potencier 42c82ae6e3 bug #61 replaced php_sapi_name() with PHP_SAPI (fabpot)
This PR was merged into the master branch.

Discussion
----------

replaced php_sapi_name() with PHP_SAPI

Commits
-------

df6b8a0 replaced php_sapi_name() with PHP_SAPI
2017-05-10 16:16:29 -07:00
Fabien Potencier df6b8a04b8 replaced php_sapi_name() with PHP_SAPI 2017-05-10 11:19:42 -07:00
Fabien Potencier a9f9fc63fb fixed markup 2017-05-08 16:28:52 -07:00
Fabien Potencier 335a134166 fixed validation rule 2017-05-08 14:49:23 -07:00
Fabien Potencier eb6d9bbcd3 added new validation rules 2017-05-08 14:19:57 -07:00
Fabien Potencier 4484258e46 added a new validation rule 2017-05-08 10:47:08 -07:00
Fabien Potencier 80e81be8aa added a new validation rule 2017-05-08 10:22:09 -07:00
Fabien Potencier 29fe5f0045 added a new validation rule 2017-05-08 09:48:48 -07:00