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

Unrecognized options "namespace" under "gearman.bundles.***" #40

Closed
hemantthorat opened this issue Sep 4, 2013 · 3 comments
Closed

Comments

@hemantthorat
Copy link

Hi,
I have update my composer to your new branch.
After making following changes to configuration file,

gearman:
    # Bundles will parsed searching workers
    bundles:
    # Name of bundle
    SiteBundle:

        # Bundle namespace
        namespace: Stockopedia\SiteBundle

When I tried to update composer , getting following error,

Installing mmoreram/gearman-bundle (dev-master 4fcd8f1)
Cloning 4fcd8f1

Writing lock file
Generating autoload files
Updating the "app/config/parameters.yml" file.

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized options "namespace" under "gearman.bundles.SiteBundle"

Kindly suggest solution, if any.

@mmoreram
Copy link
Owner

mmoreram commented Sep 4, 2013

Documentation is already updated with all new improvements.

Please, first read documentation and if any change is required, I will fix or improve it.

@mmoreram
Copy link
Owner

mmoreram commented Sep 4, 2013

Remember that yml needs indentation.

gearman:
    # Bundles will parsed searching workers
    bundles:
        # Name of bundle
        SiteBundle:
            # Bundle namespace
            namespace: Stockopedia\SiteBundle

@mmoreram mmoreram closed this as completed Sep 4, 2013
@hemantthorat
Copy link
Author

I have already gone through documentation. .yml is also has proper indentation.

liip_doctrine_cache
    namespaces:
        gearman:
             type: file_system

gearman:
    # Bundles will parsed searching workers
    bundles:
    # Name of bundle
    SiteBundle:
        # Bundle namespace
        namespace: Application\SiteBundle
        # Bundle search can be enabled or disabled
        active: true
        # If any include is defined, Only these namespaces will be parsed
        # Otherwise, full Bundle will be parsed
        include:
            - Components
        # Namespaces this Bundle will ignore when parsing
        ignore:
            - Command
            - Controller
            - Resources
            - Services
    # default values
    # All these values will be used if are not overwritten in Workers or jobs
    defaults:
        # default method related with all jobs
        # do
        # doBackground
        # doHigh
        # doHighBackground
        # doLow
        # doLowBackground
        method: do
         # Default number of executions before job dies.
         # If annotations defined, will be overwritten
         # If empty, 150 is defined by default
         iterations: 150
    # Server list where workers and clients will connect to
    # Each server must contain host and port
    # If annotations defined, will be full overwritten
    #
    # If servers empty, simple localhost server is defined by default
    # If port empty, 4730 is defined by efault
    servers:
        localhost:
            host: 127.0.0.1
            port: 4730

I don't find any issue with that, Kindly, correct me if any mistake.

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