Skip to content

Commit

Permalink
Merge pull request #448 from stof/patch-1
Browse files Browse the repository at this point in the history
Improve the usage documentation in the readme
  • Loading branch information
greg0ire authored Jun 19, 2024
2 parents 0f77e47 + c280f1b commit 423fb48
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,15 @@ composer run lint
Usage
-----

### Symfony

If you are using DoctrineExtensions with Symfony read [How to Register custom DQL Functions](https://symfony.com/doc/current/doctrine/custom_dql_functions.html).

You can find example Symfony configuration for using DoctrineExtensions custom DQL functions in [config](config).

If you are using DoctrineExtensions standalone, you might want to fire up the autoloader:

```php
<?php
### Standalone

$classLoader = new \Doctrine\Common\ClassLoader('DoctrineExtensions', '/path/to/extensions');
$classLoader->register();
```
If you are using DoctrineExtensions standalone, you need to register the custom function in the ORM configuration.
For more information check out the documentation of [Doctrine DQL User Defined Functions](https://www.doctrine-project.org/projects/doctrine-orm/en/latest/cookbook/dql-user-defined-functions.html).

Notes
Expand Down

0 comments on commit 423fb48

Please sign in to comment.