Coder Social home page Coder Social logo

pdoserviceprovider's People

Stargazers

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

Watchers

 avatar  avatar  avatar

pdoserviceprovider's Issues

Move to Silex 1.2

Hi Charles,
is there any chance to remove the dependency on Silex 1.1 and move onto Silex "dev-master"?

Tnx!

sqlSrvConfig with named instance

Hi,
First thank for your work.
I'm on a project that use your PdoServiceProvider and i detect a problem when you use it with sqlsrv and some named instance.
In named instance the port is dynamcally assigned, but in sqlSrvConfig you set the default port to 1433.
If in your config file you set port to null you've got a wrong server string that look like
new PDO('sqlsrv:localhost,; ...
(the comma after localhost is the problem).
And if you do not set the port you got a TCP error :
TCP Provider: No connection could be made because the target machine actively refused it.

I suggest this in your sqlSrvConfig file, L.34 :

$params['server'] = $params['host'];
if(!empty($params['port'])) $params['server'] .= ",".$params['port'];

so If the user want, he can define the value null for the port.

Bye.

Config issue

Expected Behavior:
Setting PDO config on application creation should carry through to registration of PDO Service Provider

Actual Behavior:
PDOServiceProvider::register resets config

Silex PDO MS SQL

Hi,

I'm new about silex world. I'm developing an application that has to connects to a MS SQL Server. In the linux world is not possible to use sqlsrv driver hence is not possible to use Doctrine.
I've tried to install your service provider by using the console's command in the readme with no success:

gmario@snatch:~/Development/WELLNET/BONERA/bonera-flegias$ php /home/gmario/Development/COMPOSER/composer.phar require "csanquer/pdo-silex-provider=~0.5" 
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package csanquer/pdo-silex-provider could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.

Can give me some help?

many tnks
gmario

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.