vendor/sentry/sentry-symfony/src/Sentry/SentryBundle/DependencyInjection/Configuration.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Sentry\SentryBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
*/
class Configuration implements ConfigurationInterface
{
/**
* {@inheritDoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('sentry');
$rootNode
->children()
->scalarNode('app_path')
->defaultValue('%kernel.root_dir%/..')
->end()
->scalarNode('client')
->defaultValue('Sentry\SentryBundle\SentrySymfonyClient')
->end()
->scalarNode('environment')
->defaultValue('%kernel.environment%')
->end()
->scalarNode('dsn')
->defaultNull()
->end()
->arrayNode('options')
->treatNullLike(array())
->prototype('scalar')->end()
->defaultValue(array())
->end()
->scalarNode('error_types')
->defaultNull()
->end()
->scalarNode('exception_listener')
->defaultValue('Sentry\SentryBundle\EventListener\ExceptionListener')
->end()
->arrayNode('skip_capture')
->treatNullLike(array())
->prototype('scalar')->end()
->defaultValue(array('Symfony\Component\HttpKernel\Exception\HttpExceptionInterface'))
->end()
->scalarNode('release')
->defaultNull()
->end()
->arrayNode('prefixes')
->prototype('scalar')->end()
->treatNullLike(array())
->defaultValue(array('%kernel.root_dir%/..'))
->end()
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。