Created
June 4, 2015 09:27
-
-
Save etki/04903718b1095ebdd7b0 to your computer and use it in GitHub Desktop.
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 AcmeBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Site\RsrSecurityBundle\Service\RsrNwlSystem; | |
class ServiceController extends Controller | |
{ | |
public function serviceRelatedAction() | |
{ | |
/** @type RsrNwlSystem $service */ | |
// $service - инстанс заданного в services.yml класса | |
$service = $this->get('rsr.sendurl'); | |
$response = $service->sendRequest(); | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment