Created
June 14, 2012 10:48
-
-
Save coreymcmahon/2929572 to your computer and use it in GitHub Desktop.
Using interfaces so that our Framework calls are mockable for testing purposes - http://www.symfonycentral.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Simplex; | |
use Symfony\Component\Routing\Matcher\UrlMatcherInterface; | |
use Symfony\Component\HttpKernel\Controller\ControllerResolverInterface; | |
class Framework | |
{ | |
public function __construct(UrlMatcherInterface $matcher, ControllerResolverInterface $resolver) | |
{ | |
// ... code goes in here | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment