for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace pjpawel\LightApi\Command\Internal;
use pjpawel\LightApi\Command\Input\InputInterface;
use pjpawel\LightApi\Command\Output\OutputInterface;
use pjpawel\LightApi\Container\ContainerLoader;
use ReflectionClass;
class DebugContainerCommand extends KernelAwareCommand
{
/**
* @inheritDoc
*/
public function execute(InputInterface $input, OutputInterface $output): int
$reflectionKernel = new ReflectionClass($this->kernel);
$containerLoaderReflection = $reflectionKernel->getProperty('containerLoader');
/** @var ContainerLoader $containerLoader */
$containerLoader = $containerLoaderReflection->getValue($this->kernel);
$output->writeln(array_keys($containerLoader->definitions));
return self::SUCCESS;
}