B
B
BonBon Slick2021-08-05 18:08:15
PHP
BonBon Slick, 2021-08-05 18:08:15

Is it possible to specify is_dir() regex?

App:
                is_bundle: false
                type: xml
                dir: '%kernel.project_dir%/src/App/**/{Infrastructure}'
                prefix: 'App\**\Infrastructure\Entity'
                alias: App

In AbstractDoctrineExtension.php line 231:
                                                                                                                             
  Specified non-existing directory "/var/www/test/src/App/**/{Infrastructure}" as Doctrine mapping source.


if (!is_dir($mappingConfig['dir'])) { //  принимает ли тут регулярки, если да, то какие?


What else do I try?
dd(is_dir('(?<=\/var\/www\/app\/src\/Bundle)(.*)(?=Infrastructure)'));

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question