Via composer i installed doctrine dbal and symfony2 config component
"require":{
"symfony/dependency-injection": "2.4.*",
"symfony/filesystem": "2.4.*",
"symfony/config": "2.4.*",
"doctrine/dbal": "2.3.4"
}
I autoload them via
…
I'm attempting to interface an event dispatcher and having a hell of a time coming up with a solution. So far i have the following simple interface:
interface EventDispatcherInterface
{
public function fire($name, $data);
}
Now i'm trying to…
I am using symfony2 validator component. I have downloaded zip files from pear.symfony.com. Unzipped files and now my directory structure is as following.
-Symfony
-index.php
index.php has following code to just test that validation class is being…
I'm using components/bootstrap bundle in my symfony2 project by composer to provide bootstrap.
The less files are in /verdor/components/bootstrap/less/ and it will automatically make copies (maybe links?) to /web/components/bootstrap/less/
So, what…
Edit
after digging into the symfony code, particularly the ControllerResolver, it seems what im trying to do actually isnt possible unless i subclass/implement ControllerResolverInterface myself.
this is the following code which instantiates the…
I'm using Silex Framework.
I wrote a simple route resource loader that is used that way :
$app->register( new RouteCollectionLoaderProvider);
$app["mp.route_loader"]->append(array(
array(
"type"=>"yaml",
…
I'm new to mocking objects in PHPUnit and can't get it working. I am building an extension of the current SensioGeneratorBundle (for Symfony2). I use PHPUnit 3.7 installed via PEAR. It is running on PHP 5.3.5 (as PEAR is installed in that…
I am using the Symfony templating component to add templating functionality to the project I am working on, I am following the docs here but I am using the service container Symfony component and adding the code in the docs using this…
I have a problem with a Symfony2 ClassLoader Component.
Start code:
require_once("vendor/autoload.php");
use Symfony\Component\ClassLoader\UniversalClassLoader;
$loader = new UniversalClassLoader();
…
I am trying out Goutte, the PHP web crawler based on Symfony2 components. I've successfully retrieved Google in both plaintext and SSL forms. However, I've come across an ASP/SSL page that won't load.
Here's my code:
// Load a crawler/browser…