for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Provide a Proxy for third party APIs.
*/
namespace Graviton\ProxyBundle;
use Graviton\BundleBundle\GravitonBundleInterface;
use Graviton\ProxyBundle\DependencyInjection\Compiler\ApiDefinitionLoaderPass;
use Graviton\ProxyBundle\DependencyInjection\Compiler\TransformerPass;
use Graviton\ProxyExtensionBundle\GravitonProxyExtensionBundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
* GravitonProxyBundle
*
* @author List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @link http://swisscom.ch
class GravitonProxyBundle extends Bundle implements GravitonBundleInterface
{
* {@inheritDoc}
* @return \Symfony\Component\HttpKernel\Bundle\Bundle[]
GravitonProxyExtensionBundle[]
This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.
array
public function getBundles()
return array(
new GravitonProxyExtensionBundle(),
);
}
* @param ContainerBuilder $container Symfony Service container
* @return void
public function build(ContainerBuilder $container)
$container->addCompilerPass(new TransformerPass());
$container->addCompilerPass(new ApiDefinitionLoaderPass());
This check looks for the generic type
arrayas a return type and suggests a more specific type. This type is inferred from the actual code.