for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the FirebaseCloudMessagingBundle.
*
* (c) Artem Henvald <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Fresh\FirebaseCloudMessagingBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that loads and manages bundle configuration.
* @author Artem Henvald <[email protected]>
class Configuration implements ConfigurationInterface
{
* {@inheritdoc}
public function getConfigTreeBuilder(): TreeBuilder
$treeBuilder = new TreeBuilder('fresh_firebase_cloud_messaging');
/** @var ArrayNodeDefinition $root */
$root = $treeBuilder->getRootNode();
$root
->children()
->scalarNode('sender_id')->end()
->scalarNode('server_key')->end()
->scalarNode('endpoint')->defaultValue('https://fcm.googleapis.com/fcm/send')->end()
->scalarNode('guzzle_timeout')->defaultValue(50)->end()
->end()
;
return $treeBuilder;
}