GithubHelp home page GithubHelp logo

bedrockstreaming / cassandrabundle Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 26.0 92 KB

:no_entry: DEPRECATED - Symfony bundle on top of the datastax cassandra component

License: MIT License

PHP 93.35% HTML 6.65%

cassandrabundle's People

Contributors

bblinot avatar fabdsp avatar gbouyge avatar gmillet avatar gregoirehebert avatar jubianchi avatar kyrylich avatar mguillermin avatar mojolyon avatar nastasiasaby avatar oliboy50 avatar omansour avatar soixante avatar therpr avatar tijnhendrikson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cassandrabundle's Issues

Client creation fails

When we don't define the ssl config option, client creation fails with message

Argument 1 passed to Cassandra\Cluster\Builder::withSSL() must be an instance of Cassandra\SSLOptions, boolean given

PHP 56 compatibility

Hi,

From version 2.1.0 you are telling on composer.json that your library is compatible with php 5.6 or above.

You're using the ?? in CassandraDataCollector though, making it 7.0 or above compliant.

Could you change this, by making a version compatible with 56 (like isset($a['a'])? $a['a'] : '';), and another one with the composer.json modified?

Thanks

Since beta, datacollector don't show execution option override

Since the cassandra beta driver released, the ExecutionOptions class don't expose public properties anymore.
Waiting response from datastax to know if they will correct this.
A fix is on the way in case they don't want expose execution option properties

Symfony 4: Compatibility

Hello.
I noticed a compatibility problem with Symfony 4. Indeed, a new method reset() appeared for the interface Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface .
Here, the commit:
symfony/http-kernel@afee8cb#diff-fafaa73029c93472d7a69e7c75c11cc7
So, it causes an error because of the class M6Web\Bundle\CassandraBundle\DataCollector\CassandraDataCollector . Add a method to this class fixes the problem.
For example:
/** * {@inheritdoc} */ public function reset() { $this->data['cassandra'] = new \SplQueue(); }
Thanks.

Symfony 4.2 service is private

Symfony 4 can't load the service, since all services are set to private by default.

This can be fixed by setting the service to public inside the M6WebCassandraExtension class.
Notice: $definition->setPublic(true);

protected function loadClient(ContainerBuilder $container, $clientId, array $config)
{
    $class = 'M6Web\Bundle\CassandraBundle\Cassandra\Client';
    $definition = new Definition($class);
    $definition->addArgument($config);
    $definition->setConfigurator(['M6Web\Bundle\CassandraBundle\Cassandra\Configurator', 'buildCluster']);

    // set service to public
    $definition->setPublic(true);

    if ($config['dispatch_events']) {
        $definition->addMethodCall('setEventDispatcher', [new Reference('event_dispatcher')]);
    }

    $container->setDefinition('m6web_cassandra.client.'.$clientId, $definition);
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.