doctrine - The ability to pass file names to the Symfony\Component\Yaml\Yaml::parse method is deprecated -


i'm new symfony2 , working on 3 weeks.
things going have 4 deprecated warning @ each page require doctrine interact (mapping done through yaml file), whatever entity used.

the ability pass file names symfony\component\yaml\yaml::parse method deprecated since version 2.2 , removed in 3.0. pass yaml contents of file instead. (4 times)

i don't know did wrong, or if there problem somewhere can fix rid of warns.

thank !

just in case, here full stacktrace :

yaml::parse() (called yamldriver.php @ line 712) yamldriver::loadmappingfile() (called filedriver.php @ line 115) filedriver::getelement() (called yamldriver.php @ line 55) yamldriver::loadmetadataforclass() (called mappingdriverchain.php @ line 102) mappingdriverchain::loadmetadataforclass() (called classmetadatafactory.php @ line 116) classmetadatafactory::doloadmetadata() (called abstractclassmetadatafactory.php @ line 332) abstractclassmetadatafactory::loadmetadata() (called abstractclassmetadatafactory.php @ line 216) abstractclassmetadatafactory::getmetadatafor() (called entitymanager.php @ line 265) entitymanager::getclassmetadata() (called defaultrepositoryfactory.php @ line 67) defaultrepositoryfactory::createrepository() (called defaultrepositoryfactory.php @ line 50) defaultrepositoryfactory::getrepository() (called entitymanager.php @ line 665) entitymanager::getrepository() (called usermanager.php @ line 40) usermanager::__construct() (called appdevdebugprojectcontainer.php @ line 1582) appdevdebugprojectcontainer::getfosuser_usermanagerservice() (called container.php @ line 312) container::get() (called appdevdebugprojectcontainer.php @ line 3632) appdevdebugprojectcontainer::getfosuser_userprovider_usernameservice() (called container.php @ line 312) container::get() (called appdevdebugprojectcontainer.php @ line 3690) appdevdebugprojectcontainer::getsecurity_authentication_managerservice() (called container.php @ line 312) container::get() (called appdevdebugprojectcontainer.php @ line 2299) appdevdebugprojectcontainer::getsecurity_firewall_map_context_mainservice() (called container.php @ line 312) container::get() (called classes.php @ line 2964) firewallmap::getlisteners() (called classes.php @ line 2606) firewall::onkernelrequest() call_user_func() (called wrappedlistener.php @ line 61) wrappedlistener::__invoke() call_user_func() (called classes.php @ line 1853) eventdispatcher::dodispatch() (called classes.php @ line 1771) eventdispatcher::dispatch() (called traceableeventdispatcher.php @ line 132) traceableeventdispatcher::dispatch() (called httpkernel.php @ line 120) httpkernel::handleraw() (called httpkernel.php @ line 62) httpkernel::handle() (called containerawarehttpkernel.php @ line 69) containerawarehttpkernel::handle() (called kernel.php @ line 185) kernel::handle() (called app_dev.php @ line 30) 

and if needed, result of composer.phar show --installed

doctrine/annotations                 v1.2.7  docblock annotations parser doctrine/cache                       v1.5.4  caching library offering object-oriented api many cache backends doctrine/collections                 v1.3.0  collections abstraction library doctrine/common                      v2.5.3  common library doctrine projects doctrine/dbal                        v2.5.4  database abstraction layer doctrine/doctrine-bundle             1.6.2   symfony doctrinebundle doctrine/doctrine-cache-bundle       1.3.0   symfony bundle doctrine cache doctrine/inflector                   v1.1.0  common string manipulations regard casing , singular/plural rules. doctrine/lexer                       v1.0.1  base library lexer can used in top-down, recursive descent parsers. doctrine/orm                         v2.4.8  object-relational-mapper php friendsofsymfony/user-bundle         v1.3.6  symfony fosuserbundle incenteev/composer-parameter-handler v2.1.2  composer script handling ignored parameter file ircmaxell/password-compat            v1.0.4  compatibility library proposed simplified password hashing algorithm: https://wiki.php.net/rfc/password_hash jdorn/sql-formatter                  v1.2.17 php sql highlighting library monolog/monolog                      1.17.2  sends logs files, sockets, inboxes, databases , various web services paragonie/random_compat              v1.2.0  php 5.x polyfill random_bytes() , random_int() php 7 psr/log                              1.0.0   common interface logging libraries sensio/distribution-bundle           v5.0.4  base bundle symfony distributions sensio/framework-extra-bundle        v3.0.13 bundle provides way configure controllers annotations sensio/generator-bundle              v3.0.5  bundle generates code sensiolabs/security-checker          v3.0.2  security checker composer.lock swiftmailer/swiftmailer              v5.4.1  swiftmailer, free feature-rich php mailer symfony/monolog-bundle               v2.8.2  symfony monologbundle symfony/phpunit-bridge               v2.8.2  symfony phpunit bridge symfony/polyfill-intl-icu            v1.1.0  symfony polyfill intl's icu-related data , classes symfony/polyfill-mbstring            v1.1.0  symfony polyfill mbstring extension symfony/polyfill-php54               v1.1.0  symfony polyfill backporting php 5.4+ features lower php versions symfony/polyfill-php55               v1.1.0  symfony polyfill backporting php 5.5+ features lower php versions symfony/polyfill-php56               v1.1.0  symfony polyfill backporting php 5.6+ features lower php versions symfony/polyfill-php70               v1.1.0  symfony polyfill backporting php 7.0+ features lower php versions symfony/polyfill-util                v1.1.0  symfony utilities portability of php codes symfony/security-acl                 v2.8.0  symfony security component - acl (access control list) symfony/swiftmailer-bundle           v2.3.11 symfony swiftmailerbundle symfony/symfony                      v2.8.2  symfony php framework twig/twig                            v1.24.0 twig, flexible, fast, , secure template language php 

edit

as suggested, upgraded doctrine 2.5, after struggling dependancy problems.

now have 2 notices, stuff security, i'm working on, based on deprecated tutorial. commenting faulty line made notices disappear. hooray !

as suggested cerad, upgraded doctrine 2.5 editing composer.json, , running composer update.

this generated new notices, related security stuff i've written in deprecated way, fixed.

for going through same problem, careful in composer.json, doctrine 2.5 requires php 5.4, , config.platform.php set 5.3.9 me, blocked update. edit if want upgrade.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -