Diskusia – 1. diel - Rezervačný systém v Symfony - Založenie projektu a prihlásenie
SpäťUpozorňujeme, že diskusie pod našimi online kurzami sú nemoderované a primárne slúžia na získavanie spätnej väzby pre budúce vylepšenie kurzov. Pre študentov našich rekvalifikačných kurzov ponúkame možnosť priameho kontaktu s lektormi a študijným referentom pre osobné konzultácie a podporu v rámci ich štúdia. Toto je exkluzívna služba, ktorá zaisťuje kvalitnú a cielenú pomoc v prípade akýchkoľvek otázok alebo projektov.
Samuel Hél:26.5.2020 10:26
Ahoj,
ano, po přihlášení se zobrazí chybové hlášení, raději to napíšu
ještě do lekce. Kontroler "User" se dělá až v příští lekci. Konec lekce
jsem ještě upravil, ať si tam rovnou přidáme budoucí routu
/myBooking
, ať se v další lekci může každý po přihlášení
správně přesměrovat.
Ahoj, dostavam chybu:
C:\xampp\htdocs\rezervace_vozidel>php bin/console doctrine:fixtures:load
Careful, database "itnetwork_tut" will be purged. Do you want to continue? (yes/no) [no]:
> y
> purging database
> loading App\DataFixtures\AppFixtures
> loading App\DataFixtures\UserFixture
In AbstractMySQLDriver.php line 55:
An exception occurred while executing 'INSERT INTO user (email, roles, password, displayname, can_reserve) VALUES (?, ?, ?, ?, ?)' with params ["[email protected]", "[\"ROL
E_USER\"]", "$argon2id$v=19$m=65536,t=4,p=1$WVpaUjc2aUp4bHpRMDAuSA$T3NSDDT3n\/7e2DTN1rBhj97eLj\/5chQI3I4v8FPw29g", "Test", 0]:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'UNIQ_8D93D6496BFA09B'
In PDOStatement.php line 129:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'UNIQ_8D93D6496BFA09B'
In PDOStatement.php line 127:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'UNIQ_8D93D6496BFA09B'
doctrine:fixtures:load [--append] [--group GROUP] [--em EM] [--shard SHARD] [--purge-with-truncate] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
Mohu vas pozadat o radu? diky
Samuel Hél:9.6.2020 15:12
Ahoj,
v databázi už asi nějaké data jsou a nechcou se přepsat. Zkus příkaz
spustit s parametrem --purge-with-truncate
takto:
php bin/console doctrine:fixtures:load --purge-with-truncate
Tak už nevím, co je špatně, založení projektu pomocí composer create-project symfony/website-skeleton:"^5" rezervace_vozidel jde jenom, když vynechám "^5" (mám instalovanou symfony 6.0.6) a poté příkaz symfony check:requirements vyhazuje error, pak už je to error za errorem. dělám všechno krok za krokem podle návodu, ale je to k ničemu. I u základů symfony stažený projekt redakční systém nefungoval. Nemůže mi někdo poradit, kde jsem udělal chybu, nejspíš už na začátku?
Samuel Hél:8.3.2022 15:10
Přidal jsem tam instalaci Symfony CLI, bez toho nefungují příkazy, které
začínají slovem symfony
. Pokud ti nejde nainstalovat verzi 5,
zkus si ji stáhnout v základech. Nevím, jaké tam udělaly změny ale
tutoriál by měl fungovat pouze s malými změnami nebo být zcela
kompatibilní. Lepší radu bych ti dal pouze, pokud bys napsal přesnou chybu,
co ti to píše. Ony totiž říkají, proč něco nejde
Petr Vlček:8.3.2022 15:19
Díky za odpověď, ono je to dost divný, v power shell mi to házelo chyby skoro od začátku, v cmd jsem se dostal dál a skončil jsem tady:
C:\Users\Petr\Desktop\rezervace_vozidel>php bin/console doctrine:fixtures:load --purge-with-truncate
PHP Fatal error: Could not check compatibility between App\DataFixtures\UserFixture::load(Doctrine\Common\Persistence\ObjectManager $manager) and Doctrine\Common\DataFixtures\FixtureInterface::load(Doctrine\Persistence\ObjectManager $manager), because class Doctrine\Common\Persistence\ObjectManager is not available in C:\Users\Petr\Desktop\rezervace_vozidel\src\DataFixtures\UserFixture.php on line 22
Fatal error: Could not check compatibility between App\DataFixtures\UserFixture::load(Doctrine\Common\Persistence\ObjectManager $manager) and Doctrine\Common\DataFixtures\FixtureInterface::load(Doctrine\Persistence\ObjectManager $manager), because class Doctrine\Common\Persistence\ObjectManager is not available in C:\Users\Petr\Desktop\rezervace_vozidel\src\DataFixtures\UserFixture.php on line 22
Symfony\Component\ErrorHandler\Error\FatalError^ {#144
#message: "Compile Error: Could not check compatibility between App\DataFixtures\UserFixture::load(Doctrine\Common\Persistence\ObjectManager $manager) and Doctrine\Common\DataFixtures\FixtureInterface::load(Doctrine\Persistence\ObjectManager $manager), because class Doctrine\Common\Persistence\ObjectManager is not available"
#code: 0
#file: "C:\Users\Petr\Desktop\rezervace_vozidel\src\DataFixtures\UserFixture.php"
#line: 22
-error: array:4 [
"type" => 64
"message" => "Could not check compatibility between App\DataFixtures\UserFixture::load(Doctrine\Common\Persistence\ObjectManager $manager) and Doctrine\Common\DataFixtures\FixtureInterface::load(Doctrine\Persistence\ObjectManager $manager), because class Doctrine\Common\Persistence\ObjectManager is not available"
"file" => "C:\Users\Petr\Desktop\rezervace_vozidel\src\DataFixtures\UserFixture.php"
"line" => 22
]
}
přitom jsem jel krok po kroku a upravoval soubory podle návodu, tak netuším, co jsem dělal špatně.
Samuel Hél:8.3.2022 17:32
A jakou to máš verzi? Zkus si stáhnout balík pod článkem.
Petr Vlček:9.3.2022 9:20
No symfony 6.0.6., bálík jsem stáhnul a začal znova radši přes cmd. Skončil jsem u php bin/console doctrine:fixtures:load
C:\Users\Petr\Desktop\rezervace_vozidel>php bin/console doctrine:fixtures:load
PHP Fatal error: During inheritance of App\DataFixtures\UserFixture, while autoloading Doctrine\Common\Persistence\ObjectManager: Uncaught ReflectionException: Class "Doctrine\Common\Persistence\ObjectManager" not found while loading "App\DataFixtures\UserFixture". in C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\error-handler\DebugClassLoader.php:284
Stack trace:
#0 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Resource\ClassExistenceResource.php(78): class_exists('App\\DataFixture...')
#1 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\ContainerBuilder.php(370): Symfony\Component\Config\Resource\ClassExistenceResource->isFresh(0)
#2 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(217): Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass('App\\DataFixture...')
#3 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(105): Symfony\Component\DependencyInjection\Loader\FileLoader->findClasses('App\\', '../src/', Array, Object(Symfony\Component\DependencyInjection\Compiler\RegisterAutoconfigureAttributesPass))
#4 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(699): Symfony\Component\DependencyInjection\Loader\FileLoader->registerClasses(Object(Symfony\Component\DependencyInjection\Definition), 'App\\', '../src/', Array)
#5 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(256): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinition('App\\', Array, 'C:\\Users\\Petr\\D...', Array)
#6 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(176): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinitions(Array, 'C:\\Users\\Petr\\D...')
#7 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(132): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->loadContent(Array, 'C:\\Users\\Petr\\D...')
#8 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\FileLoader.php(159): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load('C:\\Users\\Petr\\D...', NULL)
#9 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\FileLoader.php(98): Symfony\Component\Config\Loader\FileLoader->doImport('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')
#10 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(66): Symfony\Component\Config\Loader\FileLoader->import('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')
#11 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\Configurator\ContainerConfigurator.php(64): Symfony\Component\DependencyInjection\Loader\FileLoader->import('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')
#12 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(58): Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator->import('C:\\Users\\Petr\\D...')
#13 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(188): App\Kernel->configureContainer(Object(Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator), Object(Symfony\Component\Config\Loader\DelegatingLoader), Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#14 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\ClosureLoader.php(39): App\Kernel->Symfony\Bundle\FrameworkBundle\Kernel\{closure}(Object(Symfony\Component\DependencyInjection\ContainerBuilder), 'dev')
#15 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\DelegatingLoader.php(40): Symfony\Component\DependencyInjection\Loader\ClosureLoader->load(Object(Closure), NULL)
#16 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(196): Symfony\Component\Config\Loader\DelegatingLoader->load(Object(Closure))
#17 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(651): App\Kernel->registerContainerConfiguration(Object(Symfony\Component\Config\Loader\DelegatingLoader))
#18 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(547): Symfony\Component\HttpKernel\Kernel->buildContainer()
#19 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(789): Symfony\Component\HttpKernel\Kernel->initializeContainer()
#20 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(128): Symfony\Component\HttpKernel\Kernel->preBoot()
#21 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Console\Application.php(168): Symfony\Component\HttpKernel\Kernel->boot()
#22 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Console\Application.php(74): Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands()
#23 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\console\Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#24 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\runtime\Runner\Symfony\ConsoleApplicationRunner.php(54): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#25 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\autoload_runtime.php(35): Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run()
#26 C:\Users\Petr\Desktop\rezervace_vozidel\bin\console(11): require_once('C:\\Users\\Petr\\D...')
#27 {main} in C:\Users\Petr\Desktop\rezervace_vozidel\src\DataFixtures\UserFixture.php on line 10
Fatal error: During inheritance of App\DataFixtures\UserFixture, while autoloading Doctrine\Common\Persistence\ObjectManager: Uncaught ReflectionException: Class "Doctrine\Common\Persistence\ObjectManager" not found while loading "App\DataFixtures\UserFixture". in C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\error-handler\DebugClassLoader.php:284
Stack trace:
#0 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Resource\ClassExistenceResource.php(78): class_exists('App\\DataFixture...')
#1 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\ContainerBuilder.php(370): Symfony\Component\Config\Resource\ClassExistenceResource->isFresh(0)
#2 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(217): Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass('App\\DataFixture...')
#3 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(105): Symfony\Component\DependencyInjection\Loader\FileLoader->findClasses('App\\', '../src/', Array, Object(Symfony\Component\DependencyInjection\Compiler\RegisterAutoconfigureAttributesPass))
#4 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(699): Symfony\Component\DependencyInjection\Loader\FileLoader->registerClasses(Object(Symfony\Component\DependencyInjection\Definition), 'App\\', '../src/', Array)
#5 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(256): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinition('App\\', Array, 'C:\\Users\\Petr\\D...', Array)
#6 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(176): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinitions(Array, 'C:\\Users\\Petr\\D...')
#7 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(132): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->loadContent(Array, 'C:\\Users\\Petr\\D...')
#8 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\FileLoader.php(159): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load('C:\\Users\\Petr\\D...', NULL)
#9 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\FileLoader.php(98): Symfony\Component\Config\Loader\FileLoader->doImport('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')
#10 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(66): Symfony\Component\Config\Loader\FileLoader->import('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')
#11 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\Configurator\ContainerConfigurator.php(64): Symfony\Component\DependencyInjection\Loader\FileLoader->import('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')
#12 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(58): Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator->import('C:\\Users\\Petr\\D...')
#13 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(188): App\Kernel->configureContainer(Object(Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator), Object(Symfony\Component\Config\Loader\DelegatingLoader), Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#14 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\ClosureLoader.php(39): App\Kernel->Symfony\Bundle\FrameworkBundle\Kernel\{closure}(Object(Symfony\Component\DependencyInjection\ContainerBuilder), 'dev')
#15 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\DelegatingLoader.php(40): Symfony\Component\DependencyInjection\Loader\ClosureLoader->load(Object(Closure), NULL)
#16 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(196): Symfony\Component\Config\Loader\DelegatingLoader->load(Object(Closure))
#17 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(651): App\Kernel->registerContainerConfiguration(Object(Symfony\Component\Config\Loader\DelegatingLoader))
#18 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(547): Symfony\Component\HttpKernel\Kernel->buildContainer()
#19 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(789): Symfony\Component\HttpKernel\Kernel->initializeContainer()
#20 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(128): Symfony\Component\HttpKernel\Kernel->preBoot()
#21 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Console\Application.php(168): Symfony\Component\HttpKernel\Kernel->boot()
#22 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Console\Application.php(74): Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands()
#23 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\console\Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#24 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\runtime\Runner\Symfony\ConsoleApplicationRunner.php(54): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#25 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\autoload_runtime.php(35): Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run()
#26 C:\Users\Petr\Desktop\rezervace_vozidel\bin\console(11): require_once('C:\\Users\\Petr\\D...')
#27 {main} in C:\Users\Petr\Desktop\rezervace_vozidel\src\DataFixtures\UserFixture.php on line 10
Symfony\Component\ErrorHandler\Error\FatalError^ {#392
#message: """
Error: During inheritance of App\DataFixtures\UserFixture, while autoloading Doctrine\Common\Persistence\ObjectManager: Uncaught ReflectionException: Class "Doctrine\Common\Persistence\ObjectManager" not found while loading "App\DataFixtures\UserFixture". in C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\error-handler\DebugClassLoader.php:284\n
Stack trace:\n
#0 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Resource\ClassExistenceResource.php(78): class_exists('App\\DataFixture...')\n
#1 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\ContainerBuilder.php(370): Symfony\Component\Config\Resource\ClassExistenceResource->isFresh(0)\n
#2 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(217): Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass('App\\DataFixture...')\n
#3 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(105): Symfony\Component\DependencyInjection\Loader\FileLoader->findClasses('App\\', '../src/', Array, Object(Symfony\Component\DependencyInjection\Compiler\RegisterAutoconfigureAttributesPass))\n
#4 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(699): Symfony\Component\DependencyInjection\Loader\FileLoader->registerClasses(Object(Symfony\Component\DependencyInjection\Definition), 'App\\', '../src/', Array)\n
#5 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(256): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinition('App\\', Array, 'C:\\Users\\Petr\\D...', Array)\n
#6 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(176): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinitions(Array, 'C:\\Users\\Petr\\D...')\n
#7 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(132): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->loadContent(Array, 'C:\\Users\\Petr\\D...')\n
#8 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\FileLoader.php(159): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load('C:\\Users\\Petr\\D...', NULL)\n
#9 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\FileLoader.php(98): Symfony\Component\Config\Loader\FileLoader->doImport('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')\n
#10 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(66): Symfony\Component\Config\Loader\FileLoader->import('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')\n
#11 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\Configurator\ContainerConfigurator.php(64): Symfony\Component\DependencyInjection\Loader\FileLoader->import('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')\n
#12 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(58): Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator->import('C:\\Users\\Petr\\D...')\n
#13 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(188): App\Kernel->configureContainer(Object(Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator), Object(Symfony\Component\Config\Loader\DelegatingLoader), Object(Symfony\Component\DependencyInjection\ContainerBuilder))\n
#14 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\ClosureLoader.php(39): App\Kernel->Symfony\Bundle\FrameworkBundle\Kernel\{closure}(Object(Symfony\Component\DependencyInjection\ContainerBuilder), 'dev')\n
#15 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\DelegatingLoader.php(40): Symfony\Component\DependencyInjection\Loader\ClosureLoader->load(Object(Closure), NULL)\n
#16 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(196): Symfony\Component\Config\Loader\DelegatingLoader->load(Object(Closure))\n
#17 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(651): App\Kernel->registerContainerConfiguration(Object(Symfony\Component\Config\Loader\DelegatingLoader))\n
#18 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(547): Symfony\Component\HttpKernel\Kernel->buildContainer()\n
#19 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(789): Symfony\Component\HttpKernel\Kernel->initializeContainer()\n
#20 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(128): Symfony\Component\HttpKernel\Kernel->preBoot()\n
#21 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Console\Application.php(168): Symfony\Component\HttpKernel\Kernel->boot()\n
#22 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Console\Application.php(74): Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands()\n
#23 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\console\Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n
#24 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\runtime\Runner\Symfony\ConsoleApplicationRunner.php(54): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n
#25 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\autoload_runtime.php(35): Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run()\n
#26 C:\Users\Petr\Desktop\rezervace_vozidel\bin\console(11): require_once('C:\\Users\\Petr\\D...')\n
#27 {main}
"""
#code: 0
#file: "C:\Users\Petr\Desktop\rezervace_vozidel\src\DataFixtures\UserFixture.php"
#line: 10
-error: array:4 [
"type" => 1
"message" => """
During inheritance of App\DataFixtures\UserFixture, while autoloading Doctrine\Common\Persistence\ObjectManager: Uncaught ReflectionException: Class "Doctrine\Common\Persistence\ObjectManager" not found while loading "App\DataFixtures\UserFixture". in C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\error-handler\DebugClassLoader.php:284\n
Stack trace:\n
#0 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Resource\ClassExistenceResource.php(78): class_exists('App\\DataFixture...')\n
#1 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\ContainerBuilder.php(370): Symfony\Component\Config\Resource\ClassExistenceResource->isFresh(0)\n
#2 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(217): Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass('App\\DataFixture...')\n
#3 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(105): Symfony\Component\DependencyInjection\Loader\FileLoader->findClasses('App\\', '../src/', Array, Object(Symfony\Component\DependencyInjection\Compiler\RegisterAutoconfigureAttributesPass))\n
#4 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(699): Symfony\Component\DependencyInjection\Loader\FileLoader->registerClasses(Object(Symfony\Component\DependencyInjection\Definition), 'App\\', '../src/', Array)\n
#5 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(256): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinition('App\\', Array, 'C:\\Users\\Petr\\D...', Array)\n
#6 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(176): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinitions(Array, 'C:\\Users\\Petr\\D...')\n
#7 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(132): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->loadContent(Array, 'C:\\Users\\Petr\\D...')\n
#8 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\FileLoader.php(159): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load('C:\\Users\\Petr\\D...', NULL)\n
#9 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\FileLoader.php(98): Symfony\Component\Config\Loader\FileLoader->doImport('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')\n
#10 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(66): Symfony\Component\Config\Loader\FileLoader->import('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')\n
#11 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\Configurator\ContainerConfigurator.php(64): Symfony\Component\DependencyInjection\Loader\FileLoader->import('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')\n
#12 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(58): Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator->import('C:\\Users\\Petr\\D...')\n
#13 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(188): App\Kernel->configureContainer(Object(Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator), Object(Symfony\Component\Config\Loader\DelegatingLoader), Object(Symfony\Component\DependencyInjection\ContainerBuilder))\n
#14 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\ClosureLoader.php(39): App\Kernel->Symfony\Bundle\FrameworkBundle\Kernel\{closure}(Object(Symfony\Component\DependencyInjection\ContainerBuilder), 'dev')\n
#15 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\DelegatingLoader.php(40): Symfony\Component\DependencyInjection\Loader\ClosureLoader->load(Object(Closure), NULL)\n
#16 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(196): Symfony\Component\Config\Loader\DelegatingLoader->load(Object(Closure))\n
#17 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(651): App\Kernel->registerContainerConfiguration(Object(Symfony\Component\Config\Loader\DelegatingLoader))\n
#18 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(547): Symfony\Component\HttpKernel\Kernel->buildContainer()\n
#19 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(789): Symfony\Component\HttpKernel\Kernel->initializeContainer()\n
#20 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(128): Symfony\Component\HttpKernel\Kernel->preBoot()\n
#21 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Console\Application.php(168): Symfony\Component\HttpKernel\Kernel->boot()\n
#22 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Console\Application.php(74): Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands()\n
#23 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\console\Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n
#24 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\runtime\Runner\Symfony\ConsoleApplicationRunner.php(54): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n
#25 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\autoload_runtime.php(35): Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run()\n
#26 C:\Users\Petr\Desktop\rezervace_vozidel\bin\console(11): require_once('C:\\Users\\Petr\\D...')\n
#27 {main}
"""
"file" => "C:\Users\Petr\Desktop\rezervace_vozidel\src\DataFixtures\UserFixture.php"
"line" => 10
]
}
C:\Users\Petr\Desktop\rezervace_vozidel>php bin/console doctrine:fixtures:load
PHP Fatal error: During inheritance of App\DataFixtures\UserFixture, while autoloading Doctrine\Common\Persistence\ObjectManager: Uncaught ReflectionException: Class "Doctrine\Common\Persistence\ObjectManager" not found while loading "App\DataFixtures\UserFixture". in C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\error-handler\DebugClassLoader.php:284
Stack trace:
#0 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Resource\ClassExistenceResource.php(78): class_exists('App\\DataFixture...')
#1 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\ContainerBuilder.php(370): Symfony\Component\Config\Resource\ClassExistenceResource->isFresh(0)
#2 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(217): Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass('App\\DataFixture...')
#3 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(105): Symfony\Component\DependencyInjection\Loader\FileLoader->findClasses('App\\', '../src/', Array, Object(Symfony\Component\DependencyInjection\Compiler\RegisterAutoconfigureAttributesPass))
#4 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(699): Symfony\Component\DependencyInjection\Loader\FileLoader->registerClasses(Object(Symfony\Component\DependencyInjection\Definition), 'App\\', '../src/', Array)
#5 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(256): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinition('App\\', Array, 'C:\\Users\\Petr\\D...', Array)
#6 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(176): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinitions(Array, 'C:\\Users\\Petr\\D...')
#7 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(132): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->loadContent(Array, 'C:\\Users\\Petr\\D...')
#8 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\FileLoader.php(159): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load('C:\\Users\\Petr\\D...', NULL)
#9 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\FileLoader.php(98): Symfony\Component\Config\Loader\FileLoader->doImport('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')
#10 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(66): Symfony\Component\Config\Loader\FileLoader->import('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')
#11 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\Configurator\ContainerConfigurator.php(64): Symfony\Component\DependencyInjection\Loader\FileLoader->import('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')
#12 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(58): Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator->import('C:\\Users\\Petr\\D...')
#13 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(188): App\Kernel->configureContainer(Object(Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator), Object(Symfony\Component\Config\Loader\DelegatingLoader), Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#14 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\ClosureLoader.php(39): App\Kernel->Symfony\Bundle\FrameworkBundle\Kernel\{closure}(Object(Symfony\Component\DependencyInjection\ContainerBuilder), 'dev')
#15 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\DelegatingLoader.php(40): Symfony\Component\DependencyInjection\Loader\ClosureLoader->load(Object(Closure), NULL)
#16 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(196): Symfony\Component\Config\Loader\DelegatingLoader->load(Object(Closure))
#17 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(651): App\Kernel->registerContainerConfiguration(Object(Symfony\Component\Config\Loader\DelegatingLoader))
#18 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(547): Symfony\Component\HttpKernel\Kernel->buildContainer()
#19 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(789): Symfony\Component\HttpKernel\Kernel->initializeContainer()
#20 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(128): Symfony\Component\HttpKernel\Kernel->preBoot()
#21 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Console\Application.php(168): Symfony\Component\HttpKernel\Kernel->boot()
#22 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Console\Application.php(74): Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands()
#23 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\console\Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#24 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\runtime\Runner\Symfony\ConsoleApplicationRunner.php(54): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#25 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\autoload_runtime.php(35): Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run()
#26 C:\Users\Petr\Desktop\rezervace_vozidel\bin\console(11): require_once('C:\\Users\\Petr\\D...')
#27 {main} in C:\Users\Petr\Desktop\rezervace_vozidel\src\DataFixtures\UserFixture.php on line 10
Fatal error: During inheritance of App\DataFixtures\UserFixture, while autoloading Doctrine\Common\Persistence\ObjectManager: Uncaught ReflectionException: Class "Doctrine\Common\Persistence\ObjectManager" not found while loading "App\DataFixtures\UserFixture". in C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\error-handler\DebugClassLoader.php:284
Stack trace:
#0 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Resource\ClassExistenceResource.php(78): class_exists('App\\DataFixture...')
#1 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\ContainerBuilder.php(370): Symfony\Component\Config\Resource\ClassExistenceResource->isFresh(0)
#2 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(217): Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass('App\\DataFixture...')
#3 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(105): Symfony\Component\DependencyInjection\Loader\FileLoader->findClasses('App\\', '../src/', Array, Object(Symfony\Component\DependencyInjection\Compiler\RegisterAutoconfigureAttributesPass))
#4 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(699): Symfony\Component\DependencyInjection\Loader\FileLoader->registerClasses(Object(Symfony\Component\DependencyInjection\Definition), 'App\\', '../src/', Array)
#5 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(256): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinition('App\\', Array, 'C:\\Users\\Petr\\D...', Array)
#6 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(176): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinitions(Array, 'C:\\Users\\Petr\\D...')
#7 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(132): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->loadContent(Array, 'C:\\Users\\Petr\\D...')
#8 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\FileLoader.php(159): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load('C:\\Users\\Petr\\D...', NULL)
#9 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\FileLoader.php(98): Symfony\Component\Config\Loader\FileLoader->doImport('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')
#10 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(66): Symfony\Component\Config\Loader\FileLoader->import('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')
#11 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\Configurator\ContainerConfigurator.php(64): Symfony\Component\DependencyInjection\Loader\FileLoader->import('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')
#12 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(58): Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator->import('C:\\Users\\Petr\\D...')
#13 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(188): App\Kernel->configureContainer(Object(Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator), Object(Symfony\Component\Config\Loader\DelegatingLoader), Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#14 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\ClosureLoader.php(39): App\Kernel->Symfony\Bundle\FrameworkBundle\Kernel\{closure}(Object(Symfony\Component\DependencyInjection\ContainerBuilder), 'dev')
#15 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\DelegatingLoader.php(40): Symfony\Component\DependencyInjection\Loader\ClosureLoader->load(Object(Closure), NULL)
#16 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(196): Symfony\Component\Config\Loader\DelegatingLoader->load(Object(Closure))
#17 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(651): App\Kernel->registerContainerConfiguration(Object(Symfony\Component\Config\Loader\DelegatingLoader))
#18 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(547): Symfony\Component\HttpKernel\Kernel->buildContainer()
#19 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(789): Symfony\Component\HttpKernel\Kernel->initializeContainer()
#20 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(128): Symfony\Component\HttpKernel\Kernel->preBoot()
#21 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Console\Application.php(168): Symfony\Component\HttpKernel\Kernel->boot()
#22 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Console\Application.php(74): Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands()
#23 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\console\Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#24 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\runtime\Runner\Symfony\ConsoleApplicationRunner.php(54): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#25 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\autoload_runtime.php(35): Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run()
#26 C:\Users\Petr\Desktop\rezervace_vozidel\bin\console(11): require_once('C:\\Users\\Petr\\D...')
#27 {main} in C:\Users\Petr\Desktop\rezervace_vozidel\src\DataFixtures\UserFixture.php on line 10
Symfony\Component\ErrorHandler\Error\FatalError^ {#392
#message: """
Error: During inheritance of App\DataFixtures\UserFixture, while autoloading Doctrine\Common\Persistence\ObjectManager: Uncaught ReflectionException: Class "Doctrine\Common\Persistence\ObjectManager" not found while loading "App\DataFixtures\UserFixture". in C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\error-handler\DebugClassLoader.php:284\n
Stack trace:\n
#0 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Resource\ClassExistenceResource.php(78): class_exists('App\\DataFixture...')\n
#1 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\ContainerBuilder.php(370): Symfony\Component\Config\Resource\ClassExistenceResource->isFresh(0)\n
#2 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(217): Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass('App\\DataFixture...')\n
#3 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(105): Symfony\Component\DependencyInjection\Loader\FileLoader->findClasses('App\\', '../src/', Array, Object(Symfony\Component\DependencyInjection\Compiler\RegisterAutoconfigureAttributesPass))\n
#4 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(699): Symfony\Component\DependencyInjection\Loader\FileLoader->registerClasses(Object(Symfony\Component\DependencyInjection\Definition), 'App\\', '../src/', Array)\n
#5 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(256): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinition('App\\', Array, 'C:\\Users\\Petr\\D...', Array)\n
#6 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(176): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinitions(Array, 'C:\\Users\\Petr\\D...')\n
#7 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(132): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->loadContent(Array, 'C:\\Users\\Petr\\D...')\n
#8 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\FileLoader.php(159): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load('C:\\Users\\Petr\\D...', NULL)\n
#9 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\FileLoader.php(98): Symfony\Component\Config\Loader\FileLoader->doImport('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')\n
#10 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(66): Symfony\Component\Config\Loader\FileLoader->import('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')\n
#11 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\Configurator\ContainerConfigurator.php(64): Symfony\Component\DependencyInjection\Loader\FileLoader->import('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')\n
#12 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(58): Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator->import('C:\\Users\\Petr\\D...')\n
#13 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(188): App\Kernel->configureContainer(Object(Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator), Object(Symfony\Component\Config\Loader\DelegatingLoader), Object(Symfony\Component\DependencyInjection\ContainerBuilder))\n
#14 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\ClosureLoader.php(39): App\Kernel->Symfony\Bundle\FrameworkBundle\Kernel\{closure}(Object(Symfony\Component\DependencyInjection\ContainerBuilder), 'dev')\n
#15 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\DelegatingLoader.php(40): Symfony\Component\DependencyInjection\Loader\ClosureLoader->load(Object(Closure), NULL)\n
#16 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(196): Symfony\Component\Config\Loader\DelegatingLoader->load(Object(Closure))\n
#17 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(651): App\Kernel->registerContainerConfiguration(Object(Symfony\Component\Config\Loader\DelegatingLoader))\n
#18 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(547): Symfony\Component\HttpKernel\Kernel->buildContainer()\n
#19 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(789): Symfony\Component\HttpKernel\Kernel->initializeContainer()\n
#20 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(128): Symfony\Component\HttpKernel\Kernel->preBoot()\n
#21 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Console\Application.php(168): Symfony\Component\HttpKernel\Kernel->boot()\n
#22 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Console\Application.php(74): Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands()\n
#23 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\console\Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n
#24 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\runtime\Runner\Symfony\ConsoleApplicationRunner.php(54): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n
#25 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\autoload_runtime.php(35): Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run()\n
#26 C:\Users\Petr\Desktop\rezervace_vozidel\bin\console(11): require_once('C:\\Users\\Petr\\D...')\n
#27 {main}
"""
#code: 0
#file: "C:\Users\Petr\Desktop\rezervace_vozidel\src\DataFixtures\UserFixture.php"
#line: 10
-error: array:4 [
"type" => 1
"message" => """
During inheritance of App\DataFixtures\UserFixture, while autoloading Doctrine\Common\Persistence\ObjectManager: Uncaught ReflectionException: Class "Doctrine\Common\Persistence\ObjectManager" not found while loading "App\DataFixtures\UserFixture". in C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\error-handler\DebugClassLoader.php:284\n
Stack trace:\n
#0 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Resource\ClassExistenceResource.php(78): class_exists('App\\DataFixture...')\n
#1 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\ContainerBuilder.php(370): Symfony\Component\Config\Resource\ClassExistenceResource->isFresh(0)\n
#2 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(217): Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass('App\\DataFixture...')\n
#3 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(105): Symfony\Component\DependencyInjection\Loader\FileLoader->findClasses('App\\', '../src/', Array, Object(Symfony\Component\DependencyInjection\Compiler\RegisterAutoconfigureAttributesPass))\n
#4 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(699): Symfony\Component\DependencyInjection\Loader\FileLoader->registerClasses(Object(Symfony\Component\DependencyInjection\Definition), 'App\\', '../src/', Array)\n
#5 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(256): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinition('App\\', Array, 'C:\\Users\\Petr\\D...', Array)\n
#6 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(176): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinitions(Array, 'C:\\Users\\Petr\\D...')\n
#7 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\YamlFileLoader.php(132): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->loadContent(Array, 'C:\\Users\\Petr\\D...')\n
#8 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\FileLoader.php(159): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load('C:\\Users\\Petr\\D...', NULL)\n
#9 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\FileLoader.php(98): Symfony\Component\Config\Loader\FileLoader->doImport('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')\n
#10 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\FileLoader.php(66): Symfony\Component\Config\Loader\FileLoader->import('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')\n
#11 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\Configurator\ContainerConfigurator.php(64): Symfony\Component\DependencyInjection\Loader\FileLoader->import('C:\\Users\\Petr\\D...', NULL, false, 'C:\\Users\\Petr\\D...')\n
#12 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(58): Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator->import('C:\\Users\\Petr\\D...')\n
#13 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(188): App\Kernel->configureContainer(Object(Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator), Object(Symfony\Component\Config\Loader\DelegatingLoader), Object(Symfony\Component\DependencyInjection\ContainerBuilder))\n
#14 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\dependency-injection\Loader\ClosureLoader.php(39): App\Kernel->Symfony\Bundle\FrameworkBundle\Kernel\{closure}(Object(Symfony\Component\DependencyInjection\ContainerBuilder), 'dev')\n
#15 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\config\Loader\DelegatingLoader.php(40): Symfony\Component\DependencyInjection\Loader\ClosureLoader->load(Object(Closure), NULL)\n
#16 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Kernel\MicroKernelTrait.php(196): Symfony\Component\Config\Loader\DelegatingLoader->load(Object(Closure))\n
#17 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(651): App\Kernel->registerContainerConfiguration(Object(Symfony\Component\Config\Loader\DelegatingLoader))\n
#18 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(547): Symfony\Component\HttpKernel\Kernel->buildContainer()\n
#19 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(789): Symfony\Component\HttpKernel\Kernel->initializeContainer()\n
#20 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\http-kernel\Kernel.php(128): Symfony\Component\HttpKernel\Kernel->preBoot()\n
#21 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Console\Application.php(168): Symfony\Component\HttpKernel\Kernel->boot()\n
#22 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\framework-bundle\Console\Application.php(74): Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands()\n
#23 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\console\Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n
#24 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\symfony\runtime\Runner\Symfony\ConsoleApplicationRunner.php(54): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n
#25 C:\Users\Petr\Desktop\rezervace_vozidel\vendor\autoload_runtime.php(35): Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run()\n
#26 C:\Users\Petr\Desktop\rezervace_vozidel\bin\console(11): require_once('C:\\Users\\Petr\\D...')\n
#27 {main}
"""
"file" => "C:\Users\Petr\Desktop\rezervace_vozidel\src\DataFixtures\UserFixture.php"
"line" => 10
]
}
No a ani příkazy na instalaci scoop mi nejdou, tak pak asi místo 6.0.6 dát verzi 5, ale používat do budoucna starou verzi asi nemá smysl. No a ani ze základů symfony projekt redakční systém nefunguje, ale napojit jde a na adrese http://127.0.0.1:8000/ je vidět (teda ty chyby). Tak to už asi nechám být a pak se k tomu vrátím pěkně od začátku.
Zatiaľ nikto nevložil komentár - buď prvý!