php - Exception error with cache:clear with Class Doctrine\Common\Inflector\Inflector -


when run composer update following error when cache:clear script called.

> sensio\bundle\distributionbundle\composer\scripthandler::clearcache php fatal error:  class 'doctrine\common\inflector\inflector' not found in /home/sarah/workspace/telematics_tracker/vendor/doctrine/common/lib/doctrine/common/util/inflector.php on line 29    [runtimeexception]                                                                                                                                                                                                                           error occurred when executing "'cache:clear --no-warmup'" command:                                                                                                                                                                    php fatal error:  class 'doctrine\common\inflector\inflector' not found in /home/sarah/workspace/telematics_tracker/vendor/doctrine/common/lib/doctrine/common/util/inflector.php on line 29                                                 php stack trace:                                                                                                                                                                                                                             php   1. symfony\component\debug\errorhandler->handleexception() /home/sarah/workspace/telematics_tracker/vendor/symfony/symfony/src/symfony/component/debug/errorhandler.php:0                                                              php   2. symfony\component\debug\fatalerrorhandler\classnotfoundfatalerrorhandler->handleerror() /home/sarah/workspace/telematics_tracker/vendor/symfony/symfony/src/symfony/component/debug/errorhandler.php:557                            php   3. symfony\component\debug\fatalerrorhandler\classnotfoundfatalerrorhandler->getclasscandidates() /home/sarah/workspace/telematics_tracker/vendor/symfony/symfony/src/symfony/component/debug/fatalerrorhandler/classnotfoundfatal     errorhandler.php:62                                                                                                                                                                                                                          php   4. symfony\component\debug\fatalerrorhandler\classnotfoundfatalerrorhandler->findclassinpath() /home/sarah/workspace/telematics_tracker/vendor/symfony/symfony/src/symfony/component/debug/fatalerrorhandler/classnotfoundfatalerr     orhandler.php:118                                                                                                                                                                                                                            php   5. symfony\component\debug\fatalerrorhandler\classnotfoundfatalerrorhandler->convertfiletoclass() /home/sarah/workspace/telematics_tracker/vendor/symfony/symfony/src/symfony/component/debug/fatalerrorhandler/classnotfoundfatal     errorhandler.php:143                                                                                                                                                                                                                         php   6. require_once() /home/sarah/workspace/telematics_tracker/vendor/symfony/symfony/src/symfony/component/debug/fatalerrorhandler/classnotfoundfatalerrorhandler.php:188                                                                 segmentation fault (core dumped) 

composer.json

{     ...      "require" : {         ...         "doctrine/common" : "^2.7",         "doctrine/dbal" : "^2.5",         "doctrine/doctrine-bundle" : "^1.6",         "doctrine/doctrine-cache-bundle" : "^1.2",         "doctrine/orm" : "^2.5",         "incenteev/composer-parameter-handler" : "^2.0",         "sensio/distribution-bundle" : "^5.0",         "sensio/framework-extra-bundle" : "^3.0.2",         "sensio/generator-bundle" : "^3.1",     },     "require-dev\"" : {         "sensio/generator-bundle" : "^3.0",         "symfony/phpunit-bridge" : "^3.0",         "phpunit/phpunit" : "^5.6",         "phpunit/php-invoker" : "^1.1"     },     "scripts" : {         "post-root-package-install" : "symfonystandard\\composer::hookrootpackageinstall",         "post-install-cmd" : [             "incenteev\\parameterhandler\\scripthandler::buildparameters",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::buildbootstrap",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::clearcache",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::installassets",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::installrequirementsfile",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::removesymfonystandardfiles",             "mopa\\bundle\\bootstrapbundle\\composer\\scripthandler::postinstallsymlinktwitterbootstrap"         ],         "post-update-cmd" : [             "incenteev\\parameterhandler\\scripthandler::buildparameters",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::buildbootstrap",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::clearcache",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::installassets",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::installrequirementsfile",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::removesymfonystandardfiles",             "mopa\\bundle\\bootstrapbundle\\composer\\scripthandler::postinstallsymlinktwitterbootstrap"         ]     },     "extra" : {         "symfony-app-dir" : "app",         "symfony-bin-dir" : "bin",         "symfony-var-dir" : "var",         "symfony-web-dir" : "web",         "symfony-tests-dir" : "tests",         "symfony-assets-install" : "relative",         "incenteev-parameters" : {             "file" : "app/config/parameters.yml"         }     },     "minimum-stability" : "dev" } 

inflector.php in correct place following contents.

<?php /*  * software provided copyright holders , contributors  * "as is" , express or implied warranties, including, not  * limited to, implied warranties of merchantability , fitness  * particular purpose disclaimed. in no event shall copyright  * owner or contributors liable direct, indirect, incidental,  * special, exemplary, or consequential damages (including, not  * limited to, procurement of substitute goods or services; loss of use,  * data, or profits; or business interruption) caused , on  * theory of liability, whether in contract, strict liability, or tort  * (including negligence or otherwise) arising in way out of use  * of software, if advised of possibility of such damage.  *  * software consists of voluntary contributions made many individuals  * , licensed under mit license. more information, see  * <http://www.doctrine-project.org>.  */  namespace doctrine\common\util;  use doctrine\common\inflector\inflector baseinflector;  /**  * doctrine inflector has static methods inflecting text.  *  * kept backwards compatibility reasons, moved own component.  */ class inflector extends baseinflector { } 

i see comment in docblock kept backwards compatibility reasons, moved own component.

does know has been moved to?

how cache:clear call correct class?

running composer update morning installed new version of doctrine/inflector installing doctrine/inflector (1.2.x-dev e11d84c) , no longer getting error.


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -