| $message = \Swift_Message::newInstance() | |
| ->setSubject('Hello Email') | |
| ->setFrom('send@example.com') | |
| ->setTo('recipient@example.com') | |
| ->setBody('You should see me from the profiler!') | |
| ; | |
| $this->get('mailer')->send($message); |
| #!/bin/bash | |
| iatest=$(expr index "$-" i) | |
| ####################################################### | |
| # SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me | |
| ####################################################### | |
| # Source global definitions | |
| if [ -f /etc/bashrc ]; then | |
| . /etc/bashrc |
Stackoverflow problem: http://stackoverflow.com/questions/18120632/fosoauthserverbundle-generate-manually-an-access-token
"Adding Grant Extensions" : https://github.com/FriendsOfSymfony/FOSOAuthServerBundle/blob/master/Resources/doc/adding_grant_extensions.md
FacebookGrantExtension to get a token from a FB access_token :
class FacebookGrantExtension implements GrantExtensionInterface
{
protected $userManager = null;As William Durand was recently explaining in his SOS, he "didn't see any other interesting blog post about REST with Symfony recently unfortunately". After spending some long hours to implement an API strongly secured with oAuth, I thought it was time for me to purpose my simple explanation of how to do it.
You might have already seen some good explanation of how to easily create a REST API with Symfony2. There are famous really good bundles a.k.a. :
| build_settings: | |
| ignore: | |
| - "vendor" | |
| - "tests" | |
| setup: | |
| composer: | |
| action: "install" | |
| shell: | |
| - "%BUILD_PATH%/app/console doctrine:schema:drop --force" |
| #!/bin/bash | |
| # include config | |
| # config example below: | |
| # | |
| # | |
| # Example deploy_config.sh | |
| # | |
| # dev_env() { |