public class Hello
{
public static void Main()
{
- System.Console.WriteLine("Hello, World!");
+ System.Console.WriteLine("Rock all night long!");
}
}
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 Zalas\Infrastructure\Scraper; | |
| use OldSound\RabbitMqBundle\RabbitMq\Consumer; | |
| use OldSound\RabbitMqBundle\RabbitMq\ConsumerInterface; | |
| use OldSound\RabbitMqBundle\RabbitMq\ProducerInterface; | |
| use PhpAmqpLib\Connection\AbstractConnection; | |
| use PhpAmqpLib\Connection\AMQPLazyConnection; | |
| use PhpAmqpLib\Exception\AMQPTimeoutException; |
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
| #!/bin/bash | |
| # | |
| # /etc/kernel/postinst.d script to sign akmods kmods after kernel upgrade | |
| # | |
| # Author: Michael Goodwin Date: 2016-09-21 | |
| # 1. Copy this script to /etc/kernel/postinst.d/ and `chmod +x` it | |
| # | |
| # 2. Create signing keys (store these somewhere useful and safe): | |
| # $ mkdir -p /etc/pki/tls/private/mok |
I have managed to install this… and make it work. I implemented it for Facebook and Google, but you can extend it. My solution it is mostly as described in #116, with a bit of more code presented. The key aspects that lack in the #116 presentation (IMO) are:
- the registration as service of your custom FOSUBUserProvider (with the necessary parameters)
- set the service for
oauth_user_providerin thesecurity.ymlwith your custom created service
Here are the steps:
- Routing. In
routing.ymlI have added all the routes for both bundles. - Configuration. I have set the
config.ymlmostly as it is presented in the HWIOAuthBundle. - Security. I have set the
security.ymlmostly as it is presented in the HWIOAuthBundle (though my routes are using/loginpattern, not/connect). Also, theoauth_user_provideris set for my custom service.
NewerOlder