csanquer / pdoserviceprovider Goto Github PK
View Code? Open in Web Editor NEWa PDO service provider for Silex
License: MIT License
a PDO service provider for Silex
License: MIT License
Expected Behavior:
Setting PDO config on application creation should carry through to registration of PDO Service Provider
Actual Behavior:
PDOServiceProvider::register resets config
@csanquer could you create tag or branch for current master? Version 1.0.0 does not support Silex ~2.0...
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.
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
Hi Charles,
is there any chance to remove the dependency on Silex 1.1 and move onto Silex "dev-master"?
Tnx!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.