1534 search results for symfony bundle

// ... lines 1 - 104
private function addGlobalsSection(ArrayNodeDefinition $rootNode)
{
$rootNode
->fixXmlConfig('global')
->children()
->arrayNode('globals')
->normalizeKeys(false)
->useAttributeAsKey('key')
->example(array('foo' => '"@bar"', 'pi' => 3.14))
->prototype('array')
// ... lines 115 - 124
->beforeNormalization()
->ifTrue(function ($v) {
if (is_array($v)) {
$keys = array_keys($v);
sort($keys);
return $keys !== array('id', 'type') && $keys !== array('value');
}
return true;
})
->then(function ($v) { return array('value' => $v); })
->end()
// ... lines 138 - 147
->end()
->end()
->end()
;
}
// ... lines 153 - 201
See Code Block in Script
// ... lines 1 - 22
class Configuration implements ConfigurationInterface
{
// ... lines 25 - 199
}
See Code Block in Script
// ... lines 1 - 33
public function load(array $configs, ContainerBuilder $container)
{
// ... lines 36 - 52
$configuration = $this->getConfiguration($configs, $container);
$config = $this->processConfiguration($configuration, $configs);
// ... lines 56 - 131
}
// ... lines 133 - 158
See Code Block in Script
<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="twig.class">Twig_Environment</parameter>
// ... lines 9 - 28
</parameters>
<services>
<service id="twig" class="%twig.class%">
<argument type="service" id="twig.loader" />
<argument>%twig.options%</argument>
<call method="addGlobal">
<argument>app</argument>
<argument type="service" id="templating.globals" />
</call>
</service>
<service id="twig.cache_warmer" class="%twig.cache_warmer.class%" public="false">
<tag name="kernel.cache_warmer" />
<argument type="service" id="service_container" />
<argument type="service" id="templating.finder" />
</service>
// ... lines 46 - 141
</services>
</container>
See Code Block in Script
// ... lines 1 - 33
public function load(array $configs, ContainerBuilder $container)
{
// ... line 36
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('twig.xml');
// ... lines 39 - 131
}
// ... lines 133 - 158
See Code Block in Script
// ... lines 1 - 33
public function load(array $configs, ContainerBuilder $container)
{
var_dump($configs);die;
// ... lines 37 - 131
}
// ... lines 133 - 158
See Code Block in Script
// ... lines 1 - 25
class TwigExtension extends Extension
{
// ... lines 28 - 33
public function load(array $configs, ContainerBuilder $container)
{
// ... lines 36 - 130
}
// ... lines 132 - 155
}
See Code Block in Script
// ... lines 1 - 204
protected function getContainerExtensionClass()
{
$basename = preg_replace('/Bundle$/', '', $this->getName());
return $this->getNamespace().'\\DependencyInjection\\'.$basename.'Extension';
}
// ... lines 211 - 212
See Code Block in Script
// ... lines 1 - 28
abstract class Bundle extends ContainerAware implements BundleInterface
{
// ... lines 31 - 71
public function getContainerExtension()
{
if (null === $this->extension) {
$class = $this->getContainerExtensionClass();
if (class_exists($class)) {
$extension = new $class();
// ... lines 78 - 88
$this->extension = $extension;
} else {
$this->extension = false;
}
}
if ($this->extension) {
return $this->extension;
}
}
// ... lines 99 - 212
See Code Block in Script
// ... lines 1 - 45
class FrameworkBundle extends Bundle
{
// ... lines 48 - 64
public function build(ContainerBuilder $container)
{
// ... lines 67 - 72
$container->addCompilerPass(new RoutingResolverPass());
$container->addCompilerPass(new ProfilerPass());
// ... lines 75 - 76
$container->addCompilerPass(new RegisterListenersPass(), PassConfig::TYPE_BEFORE_REMOVING);
$container->addCompilerPass(new TemplatingPass());
// ... lines 79 - 97
}
}
See Code Block in Script
// ... lines 1 - 17
final class TargetPathHelper
{
// ... lines 20 - 62
}
See Code Block in Script
// ... lines 1 - 17
class TargetPathHelper
{
// ... lines 20 - 44
/**
* Returns the URL (if any) the user visited that forced them to login.
*/
public function getPath(): string
{
return $this->getTargetPath($this->session, $this->getProviderKey());
}
// ... lines 52 - 62
}
See Code Block in Script
// ... lines 1 - 17
class TargetPathHelper
{
// ... lines 20 - 47
public function getPath(): string
{
return $this->getTargetPath($this->session, $this->getProviderKey());
}
// ... lines 52 - 62
}
See Code Block in Script
// ... lines 1 - 17
class TargetPathHelper
{
// ... lines 20 - 44
private function getProviderKey(): string
{
$firewallConfig = $this->firewallMap->getFirewallConfig($this->requestStack->getMasterRequest());
if (null === $firewallConfig) {
throw new \LogicException('Could not find firewall config for the current request');
}
return $firewallConfig->getName();
}
}
See Code Block in Script
// ... lines 1 - 17
class TargetPathHelper
{
// ... lines 20 - 44
private function getProviderKey(): string
{
$firewallConfig = $this->firewallMap->getFirewallConfig($this->requestStack->getMasterRequest());
if (null === $firewallConfig) {
throw new \LogicException('Could not find firewall config for the current request');
}
// ... lines 52 - 53
}
}
See Code Block in Script
// ... lines 1 - 17
class TargetPathHelper
{
// ... lines 20 - 44
private function getProviderKey(): string
{
$firewallConfig = $this->firewallMap->getFirewallConfig($this->requestStack->getMasterRequest());
if (null === $firewallConfig) {
// ... line 50
}
// ... lines 52 - 53
}
}
See Code Block in Script
// ... lines 1 - 17
class TargetPathHelper
{
// ... lines 20 - 44
private function getProviderKey(): string
{
$firewallConfig = $this->firewallMap->getFirewallConfig($this->requestStack->getMasterRequest());
// ... lines 48 - 53
}
}
See Code Block in Script
// ... lines 1 - 13
use Symfony\Component\HttpFoundation\RequestStack;
// ... lines 15 - 17
class TargetPathHelper
{
// ... lines 20 - 25
private $requestStack;
public function __construct(SessionInterface $session, FirewallMap $firewallMap, RequestStack $requestStack)
{
// ... lines 30 - 31
$this->requestStack = $requestStack;
}
// ... lines 34 - 54
}
See Code Block in Script
// ... lines 1 - 16
class TargetPathHelper
{
// ... lines 19 - 40
private function getProviderKey(): string
{
// TODO
}
}
See Code Block in Script
// ... lines 1 - 16
class TargetPathHelper
{
// ... lines 19 - 35
public function savePath(string $uri)
{
$this->saveTargetPath($this->session, $this->getProviderKey(), $uri);
}
// ... lines 40 - 44
}
See Code Block in Script