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