Fatal error: SolidInvoice\ItemBundle\Action\Add and SolidInvoice\CoreBundle\Traits\SaveableTrait define the same property ($doctrine) in the composition of SolidInvoice\ItemBundle\Action\Add. However, the definition differs and is considered incompatible. Class was composed in /www/wwwroot/cachi.sanchezcolomb.com/src/ItemBundle/Action/Add.php on line 30
Stack trace: #0 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/error-handler/DebugClassLoader.php(350): include() #1 [internal function]: Symfony\Component\ErrorHandler\DebugClassLoader->loadClass() #2 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/config/Resource/ClassExistenceResource.php(76): class_exists() #3 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/ContainerBuilder.php(412): Symfony\Component\Config\Resource\ClassExistenceResource->isFresh() #4 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Loader/FileLoader.php(376): Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass() #5 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Loader/FileLoader.php(137): Symfony\Component\DependencyInjection\Loader\FileLoader->findClasses() #6 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Loader/Configurator/PrototypeConfigurator.php(69): Symfony\Component\DependencyInjection\Loader\FileLoader->registerClasses() #7 /www/wwwroot/cachi.sanchezcolomb.com/src/ItemBundle/Resources/config/services/services.php(31): Symfony\Component\DependencyInjection\Loader\Configurator\PrototypeConfigurator->__destruct() #8 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Loader/PhpFileLoader.php(213): {closure:/www/wwwroot/cachi.sanchezcolomb.com/src/ItemBundle/Resources/config/services/services.php:18}() #9 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Loader/PhpFileLoader.php(69): Symfony\Component\DependencyInjection\Loader\PhpFileLoader->callConfigurator() #10 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/config/Loader/FileLoader.php(175): Symfony\Component\DependencyInjection\Loader\PhpFileLoader->load() #11 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/config/Loader/FileLoader.php(92): Symfony\Component\Config\Loader\FileLoader->doImport() #12 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Loader/FileLoader.php(86): Symfony\Component\Config\Loader\FileLoader->import() #13 /www/wwwroot/cachi.sanchezcolomb.com/src/ItemBundle/DependencyInjection/SolidInvoiceItemExtension.php(26): Symfony\Component\DependencyInjection\Loader\FileLoader->import() #14 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php(97): SolidInvoice\ItemBundle\DependencyInjection\SolidInvoiceItemExtension->load() #15 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Compiler/Compiler.php(73): Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass->process() #16 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/ContainerBuilder.php(823): Symfony\Component\DependencyInjection\Compiler\Compiler->compile() #17 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Kernel/KernelTrait.php(229): Symfony\Component\DependencyInjection\ContainerBuilder->compile() #18 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/http-kernel/Kernel.php(202): SolidWorx\Platform\PlatformBundle\Kernel->doInitializeContainer() #19 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php(85): Symfony\Component\HttpKernel\Kernel->initializeContainer() #20 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/http-kernel/Kernel.php(258): SolidWorx\Platform\PlatformBundle\Kernel->initializeContainer() #21 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/http-kernel/Kernel.php(122): Symfony\Component\HttpKernel\Kernel->preBoot() #22 /www/wwwroot/cachi.sanchezcolomb.com/vendor/solidworx/platform/src/Bundle/Platform/Kernel.php(63): Symfony\Component\HttpKernel\Kernel->handle() #23 /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php(34): SolidWorx\Platform\PlatformBundle\Kernel->handle() #24 /www/wwwroot/cachi.sanchezcolomb.com/vendor/autoload_runtime.php(32): Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() #25 /www/wwwroot/cachi.sanchezcolomb.com/public/index.php(22): require_once('...') #26 {main} Compile Error: SolidInvoice\ItemBundle\Action\Add and SolidInvoice\CoreBundle\Traits\SaveableTrait define the same property ($doctrine) in the composition of SolidInvoice\ItemBundle\Action\Add. However, the definition differs and is considered incompatible. Class was composed (500 Internal Server Error)

Symfony Exception

FatalError

HTTP 500 Internal Server Error

Compile Error: SolidInvoice\ItemBundle\Action\Add and SolidInvoice\CoreBundle\Traits\SaveableTrait define the same property ($doctrine) in the composition of SolidInvoice\ItemBundle\Action\Add. However, the definition differs and is considered incompatible. Class was composed

Exception

Symfony\Component\ErrorHandler\Error\ FatalError

Show exception properties
Symfony\Component\ErrorHandler\Error\FatalError {#2274
  -error: array:4 [
    "type" => 64
    "message" => "SolidInvoice\ItemBundle\Action\Add and SolidInvoice\CoreBundle\Traits\SaveableTrait define the same property ($doctrine) in the composition of SolidInvoice\ItemBundle\Action\Add. However, the definition differs and is considered incompatible. Class was composed"
    "file" => "/www/wwwroot/cachi.sanchezcolomb.com/src/ItemBundle/Action/Add.php"
    "line" => 30
  ]
}
  1. use Symfony\Component\HttpFoundation\Response;
  2. use Symfony\Component\HttpFoundation\Session\Session;
  3. use Symfony\Component\Routing\RouterInterface;
  4. use function assert;
  5. final class Add
  6. {
  7. use SaveableTrait;
  8. public function __construct(
  9. private readonly FormFactoryInterface $formFactory,
  1. // no-op
  2. } elseif (\function_exists('opcache_is_script_cached') && @opcache_is_script_cached($file)) {
  3. include $file;
  4. return;
  5. } elseif (false === include $file) {
  6. return;
  7. }
  8. } else {
  9. ($this->classLoader)($class);
  10. $file = '';
DebugClassLoader->loadClass()
  1. }
  2. $autoloadedClass = self::$autoloadedClass;
  3. self::$autoloadedClass = ltrim($this->resource, '\\');
  4. try {
  5. $exists[0] = class_exists($this->resource) || interface_exists($this->resource, false) || trait_exists($this->resource, false);
  6. } catch (\Exception $e) {
  7. $exists[1] = $e->getMessage();
  8. try {
  9. self::throwOnRequiredClass($this->resource, $e);
  1. try {
  2. if (isset($this->classReflectors[$class])) {
  3. $classReflector = $this->classReflectors[$class];
  4. } elseif (class_exists(ClassExistenceResource::class)) {
  5. $resource = new ClassExistenceResource($class, false);
  6. $classReflector = $resource->isFresh(0) ? false : new \ReflectionClass($class);
  7. } else {
  8. $classReflector = class_exists($class) || interface_exists($class, false) ? new \ReflectionClass($class) : false;
  9. }
  10. } catch (\ReflectionException $e) {
  11. if ($throw) {
  1. if (!preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+(?:\\\\[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+)*+$/', $class)) {
  2. continue;
  3. }
  4. try {
  5. $r = $this->container->getReflectionClass($class);
  6. } catch (\ReflectionException $e) {
  7. $classes[$class] = $e->getMessage();
  8. continue;
  9. }
  10. // check to make sure the expected class exists
  1. throw new InvalidArgumentException('The exclude list must not contain an empty value.');
  2. }
  3. $autoconfigureAttributes = new RegisterAutoconfigureAttributesPass();
  4. $autoconfigureAttributes = $autoconfigureAttributes->accept($prototype) ? $autoconfigureAttributes : null;
  5. $classes = $this->findClasses($namespace, $resource, (array) $exclude, $source);
  6. $getPrototype = static fn () => clone $prototype;
  7. // deep-clone only the parts that hold mutable objects; the other ones
  8. // can be shared between all the definitions created from the prototype
  1. public function __destruct()
  2. {
  3. parent::__destruct();
  4. if (isset($this->loader)) {
  5. $this->loader->registerClasses($this->definition, $this->id, $this->resource, $this->excludes, $this->path);
  6. }
  7. unset($this->loader);
  8. }
  9. /**
  1. ->private()
  2. ;
  3. $services
  4. ->load(SolidInvoiceItemBundle::NAMESPACE . '\\', dirname(__DIR__, 3))
  5. ->exclude(dirname(__DIR__, 3) . '/{DependencyInjection,Entity,Resources,Tests}');
  6. $services
  7. ->load(SolidInvoiceItemBundle::NAMESPACE . '\\Action\\', dirname(__DIR__, 3) . '/Action')
  8. ->tag('controller.service_arguments');
  9. };
in /www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Loader/PhpFileLoader.php {closure:/www/wwwroot/cachi.sanchezcolomb.com/src/ItemBundle/Resources/config/services/services.php:18} (line 213)
  1. }
  2. }
  3. ++$this->importing;
  4. try {
  5. $callback(...$arguments);
  6. } finally {
  7. --$this->importing;
  8. }
  9. }
  10. }
  1. if (1 === $result = $load($path, $this->env)) {
  2. $result = null;
  3. }
  4. if (\is_object($result) && \is_callable($result)) {
  5. $this->callConfigurator($result, new ContainerConfigurator($this->container, $this, $this->instanceof, $path, $resource, $this->env), $path);
  6. } elseif (\is_array($result)) {
  7. ++$this->importing;
  8. try {
  9. $this->loadContent([
  10. 'imports' => ContainerConfigurator::processValue($result['imports'] ?? []),
  1. }
  2. }
  3. self::$loading[$resource] = true;
  4. try {
  5. $ret = $loader->load($resource, $type);
  6. } finally {
  7. unset(self::$loading[$resource]);
  8. }
  9. return $ret;
  1. if ($isGlobPattern && !str_contains($resource, "\n")) {
  2. $ret = [];
  3. $i = strcspn($resource, '*?{[');
  4. $isSubpath = 0 !== $i && str_contains(substr($resource, 0, $i), '/');
  5. foreach ($this->glob($resource, false, $_, $ignoreErrors || !$isSubpath, false, $excluded) as $path => $info) {
  6. if (null !== $res = $this->doImport($path, 'glob' === $type ? null : $type, $ignoreErrors, $sourceResource)) {
  7. $ret[] = $res;
  8. }
  9. $isSubpath = true;
  10. }
  1. throw new \TypeError(\sprintf('Invalid argument $ignoreErrors provided to "%s::import()": boolean or "not_found" expected, "%s" given.', static::class, get_debug_type($ignoreErrors)));
  2. }
  3. ++$this->importing;
  4. try {
  5. return parent::import(...$args);
  6. } catch (LoaderLoadException $e) {
  7. if (!$ignoreNotFound || !($prev = $e->getPrevious()) instanceof FileLocatorFileNotFoundException) {
  8. throw $e;
  9. }
  1. class SolidInvoiceItemExtension extends Extension
  2. {
  3. public function load(array $configs, ContainerBuilder $container): void
  4. {
  5. $loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
  6. $loader->import('services/*.php');
  7. }
  8. }
  1. foreach ($exprLangProviders as $provider) {
  2. $tmpContainer->addExpressionLanguageProvider($provider);
  3. }
  4. $extension->load($config, $tmpContainer);
  5. } catch (\Exception $e) {
  6. if ($resolvingBag instanceof MergeExtensionConfigurationParameterBag) {
  7. $container->getParameterBag()->mergeEnvPlaceholders($resolvingBag);
  8. }
  1. */
  2. public function compile(ContainerBuilder $container): void
  3. {
  4. try {
  5. foreach ($this->passConfig->getPasses() as $pass) {
  6. $pass->process($container);
  7. }
  8. } catch (\Exception $e) {
  9. $usedEnvs = [];
  10. $prev = $e;
  1. if ($resolveEnvPlaceholders && $bag instanceof EnvPlaceholderParameterBag) {
  2. $compiler->addPass(new ResolveEnvPlaceholdersPass(), PassConfig::TYPE_AFTER_REMOVING, -1000);
  3. }
  4. $compiler->compile($this);
  5. foreach ($this->definitions as $id => $definition) {
  6. if ($this->trackResources && $definition->isLazy()) {
  7. $this->getReflectionClass($definition->getClass());
  8. }
  1. }
  2. try {
  3. $container = null;
  4. $container = $this->buildContainer();
  5. $container->compile();
  6. } finally {
  7. if ($collectDeprecations) {
  8. restore_error_handler();
  9. @file_put_contents($buildDir.'/'.$class.'Deprecations.log', serialize(array_values($collectedLogs)));
  1. protected function initializeContainer(): void
  2. {
  3. $cachePath = $this->getEffectiveBuildDir().'/'.$this->getContainerClass().'.php';
  4. $oldMtime = is_file($cachePath) ? filemtime($cachePath) : false;
  5. $this->doInitializeContainer();
  6. if (false !== $oldMtime && filemtime($cachePath) === $oldMtime) {
  7. return;
  8. }
  1. parent::initializeBundles();
  2. }
  3. protected function initializeContainer(): void
  4. {
  5. parent::initializeContainer();
  6. }
  7. /**
  8. * Adds or imports routes into your application.
  9. *
  1. $_ENV['SHELL_VERBOSITY'] = 3;
  2. $_SERVER['SHELL_VERBOSITY'] = 3;
  3. }
  4. $this->initializeBundles();
  5. $this->initializeContainer();
  6. $container = $this->container;
  7. if ($container->hasParameter('kernel.trusted_hosts') && $trustedHosts = $container->getParameter('kernel.trusted_hosts')) {
  8. Request::setTrustedHosts(\is_array($trustedHosts) ? $trustedHosts : preg_split('/\s*+,\s*+(?![^{]*})/', $trustedHosts));
  1. }
  2. public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response
  3. {
  4. if (!$this->container) {
  5. $this->preBoot();
  6. }
  7. if (HttpKernelInterface::MAIN_REQUEST === $type && !$this->handlingHttpCache && $this->container->has('http_cache')) {
  8. $this->handlingHttpCache = true;
  1. #[Override]
  2. public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response
  3. {
  4. $this->processPlatformConfig();
  5. return parent::handle($request, $type, $catch);
  6. }
  7. #[Override]
  8. public function boot(): void
  9. {
  1. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. $response->send(false);
  7. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
  8. fastcgi_finish_request();
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/www/wwwroot/cachi.sanchezcolomb.com/vendor/autoload_runtime.php') in /www/wwwroot/cachi.sanchezcolomb.com/public/index.php (line 22)
  1. $_SERVER['APP_RUNTIME_OPTIONS'] = [
  2. 'env_var_name' => 'SOLIDINVOICE_ENV',
  3. 'debug_var_name' => 'SOLIDINVOICE_DEBUG'
  4. ];
  5. require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
  6. return static function (AppMode $mode, array $context) {
  7. return new Kernel($mode, $context['SOLIDINVOICE_ENV'], (bool) $context['SOLIDINVOICE_DEBUG']);
  8. };

Stack Trace

FatalError
Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: SolidInvoice\ItemBundle\Action\Add and SolidInvoice\CoreBundle\Traits\SaveableTrait define the same property ($doctrine) in the composition of SolidInvoice\ItemBundle\Action\Add. However, the definition differs and is considered incompatible. Class was composed

  at /www/wwwroot/cachi.sanchezcolomb.com/src/ItemBundle/Action/Add.php:30
  at include()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/error-handler/DebugClassLoader.php:350)
  at Symfony\Component\ErrorHandler\DebugClassLoader->loadClass()
  at class_exists()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/config/Resource/ClassExistenceResource.php:76)
  at Symfony\Component\Config\Resource\ClassExistenceResource->isFresh()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/ContainerBuilder.php:412)
  at Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Loader/FileLoader.php:376)
  at Symfony\Component\DependencyInjection\Loader\FileLoader->findClasses()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Loader/FileLoader.php:137)
  at Symfony\Component\DependencyInjection\Loader\FileLoader->registerClasses()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Loader/Configurator/PrototypeConfigurator.php:69)
  at Symfony\Component\DependencyInjection\Loader\Configurator\PrototypeConfigurator->__destruct()
     (/www/wwwroot/cachi.sanchezcolomb.com/src/ItemBundle/Resources/config/services/services.php:31)
  at {closure:/www/wwwroot/cachi.sanchezcolomb.com/src/ItemBundle/Resources/config/services/services.php:18}()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Loader/PhpFileLoader.php:213)
  at Symfony\Component\DependencyInjection\Loader\PhpFileLoader->callConfigurator()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Loader/PhpFileLoader.php:69)
  at Symfony\Component\DependencyInjection\Loader\PhpFileLoader->load()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/config/Loader/FileLoader.php:175)
  at Symfony\Component\Config\Loader\FileLoader->doImport()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/config/Loader/FileLoader.php:92)
  at Symfony\Component\Config\Loader\FileLoader->import()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Loader/FileLoader.php:86)
  at Symfony\Component\DependencyInjection\Loader\FileLoader->import()
     (/www/wwwroot/cachi.sanchezcolomb.com/src/ItemBundle/DependencyInjection/SolidInvoiceItemExtension.php:26)
  at SolidInvoice\ItemBundle\DependencyInjection\SolidInvoiceItemExtension->load()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php:97)
  at Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass->process()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Compiler/Compiler.php:73)
  at Symfony\Component\DependencyInjection\Compiler\Compiler->compile()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/ContainerBuilder.php:823)
  at Symfony\Component\DependencyInjection\ContainerBuilder->compile()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/dependency-injection/Kernel/KernelTrait.php:229)
  at SolidWorx\Platform\PlatformBundle\Kernel->doInitializeContainer()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->initializeContainer()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php:85)
  at SolidWorx\Platform\PlatformBundle\Kernel->initializeContainer()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/http-kernel/Kernel.php:258)
  at Symfony\Component\HttpKernel\Kernel->preBoot()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/http-kernel/Kernel.php:122)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/solidworx/platform/src/Bundle/Platform/Kernel.php:63)
  at SolidWorx\Platform\PlatformBundle\Kernel->handle()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:34)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (/www/wwwroot/cachi.sanchezcolomb.com/vendor/autoload_runtime.php:32)
  at require_once('/www/wwwroot/cachi.sanchezcolomb.com/vendor/autoload_runtime.php')
     (/www/wwwroot/cachi.sanchezcolomb.com/public/index.php:22)