Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvalidConfigurationException #2

Open
NadaBen opened this issue Apr 6, 2017 · 2 comments
Open

nvalidConfigurationException #2

NadaBen opened this issue Apr 6, 2017 · 2 comments

Comments

@NadaBen
Copy link

NadaBen commented Apr 6, 2017

Hello,
I tried to follow the documentation, but i have this error
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
'1' must inherit the \Exception class

@markitosgv
Copy link
Contributor

Could you please give us more details?

@NadaBen
Copy link
Author

NadaBen commented Apr 6, 2017

This is m composer:

`    "require": {
        "php": ">=5.3.3",
        "symfony/symfony": "2.8.*",
        "doctrine/orm": "~2.2,>=2.2.3",
        "doctrine/doctrine-bundle": "~1.2",
        "twig/extensions": "~1.0",
        "symfony/assetic-bundle": "~2.3",
        "symfony/swiftmailer-bundle": "~2.3",
        "symfony/monolog-bundle": "~2.4",
        "sensio/distribution-bundle": "~3.0",
        "sensio/framework-extra-bundle": "*",
        "incenteev/composer-parameter-handler": "~2.0",
        "white-october/pagerfanta-bundle": "^1.0",
        "willdurand/negotiation": "^2.0",
        "friendsofsymfony/rest-bundle": "~2.0",
        "friendsofsymfony/user-bundle": "*",
        "nelmio/api-doc-bundle": "^2.11",
        "vich/uploader-bundle": "^0.14.0",
        "liip/imagine-bundle": "^1.4",
        "doctrine/doctrine-migrations-bundle": "^1.1",
        "jms/serializer-bundle": "*",
        "friendsofsymfony/oauth-server-bundle": "*",
        "Instasent/ratelimit-bundle": "dev-master",
        "conjecto/nemrod": "dev-master",
        "easyrdf/easyrdf": "@dev",
        "conjecto/json-ld": "@dev",
        "snc/redis-bundle": "*",
        "predis/predis": "*",
        "ob/highcharts-bundle": "*",
        "symfony/finder": "*",
        "javiereguiluz/easyadmin-bundle": "*",
        "friendsofsymfony/jsrouting-bundle": "dev-master",
        "jms/i18n-routing-bundle": "dev-master"`

my config file:

`instasent_rate_limit:
    enabled:              true
    storage_engine:       redis
    redis_client:         api_rate_limit
    # The HTTP status code to return when a client hits the rate limit
    rate_response_code:   429
    # Optional exception class that will be returned when a client hits the rate limit
    rate_response_exception:  true

    # The HTTP message to return when a client hits the rate limit
    rate_response_message:  'You exceeded the rate limit'

    # Should the ratelimit headers be automatically added to the response?
    display_headers:      true

    # What are the different header names to add
    headers:
        limit:                X-RateLimit-Limit
        remaining:            X-RateLimit-Remaining
        reset:                X-RateLimit-Reset`

* @RateLimit(limit=1, period=3600) * @Rest\View() * * */ public function getSemanticsAction(ParamFetcher $paramFetcher) {

and this the exception trace:

Exception trace:
 () at C:\wamp64\www\VCycle_API\vendor\instasent\ratelimit-bundle\Instasent\RateLimitBundle\DependencyInjection\Configuration.php:56
 Instasent\RateLimitBundle\DependencyInjection\Configuration->Instasent\RateLimitBundle\DependencyInjection\{closure}() at C:\wamp64\www\VCycle_API\vendor\symfony\symfony\src\Symfony\Component\Config\Definition\Builder\ExprBuilder.php:231
 Symfony\Component\Config\Definition\Builder\ExprBuilder::Symfony\Component\Config\Definition\Builder\{closure}() at C:\wamp64\www\VCycle_API\vendor\symfony\symfony\src\Symfony\Component\Config\Definition\BaseNode.php:309
 Symfony\Component\Config\Definition\BaseNode->finalize() at C:\wamp64\www\VCycle_API\vendor\symfony\symfony\src\Symfony\Component\Config\Definition\ArrayNode.php:254
 Symfony\Component\Config\Definition\ArrayNode->finalizeValue() at C:\wamp64\www\VCycle_API\vendor\symfony\symfony\src\Symfony\Component\Config\Definition\BaseNode.php:303
 Symfony\Component\Config\Definition\BaseNode->finalize() at C:\wamp64\www\VCycle_API\vendor\symfony\symfony\src\Symfony\Component\Config\Definition\Processor.php:37
 Symfony\Component\Config\Definition\Processor->process() at C:\wamp64\www\VCycle_API\vendor\symfony\symfony\src\Symfony\Component\Config\Definition\Processor.php:50
 Symfony\Component\Config\Definition\Processor->processConfiguration() at C:\wamp64\www\VCycle_API\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\Extension\Extension.php:99
 Symfony\Component\DependencyInjection\Extension\Extension->processConfiguration() at C:\wamp64\www\VCycle_API\vendor\instasent\ratelimit-bundle\Instasent\RateLimitBundle\DependencyInjection\InstasentRateLimitExtension.php:24
 Instasent\RateLimitBundle\DependencyInjection\InstasentRateLimitExtension->load() at C:\wamp64\www\VCycle_API\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass.php:59
 Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass->process() at C:\wamp64\www\VCycle_API\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass.php:39
 Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass->process() at C:\wamp64\www\VCycle_API\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\Compiler\Compiler.php:104
 Symfony\Component\DependencyInjection\Compiler\Compiler->compile() at C:\wamp64\www\VCycle_API\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\ContainerBuilder.php:598
 Symfony\Component\DependencyInjection\ContainerBuilder->compile() at C:\wamp64\www\VCycle_API\app\bootstrap.php.cache:2754
 Symfony\Component\HttpKernel\Kernel->initializeContainer() at C:\wamp64\www\VCycle_API\app\bootstrap.php.cache:2529
 Symfony\Component\HttpKernel\Kernel->boot() at C:\wamp64\www\VCycle_API\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:70
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at C:\wamp64\www\VCycle_API\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:123
 Symfony\Component\Console\Application->run() at C:\wamp64\www\VCycle_API\app\console:27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants