This file contains 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
nic7="none" | |
nic8="none" | |
hidpointing="ps2mouse" | |
hidkeyboard="ps2kbd" | |
uart1="off" | |
uart2="off" | |
lpt1="off" | |
lpt2="off" | |
audio="none" | |
clipboard="disabled" |
This file contains 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 App\Http\Controllers; | |
use App\User; | |
use App\Repositories\UserRepository; | |
use App\Http\Controllers\Controller; | |
class UserController extends Controller | |
{ |
This file contains 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 | |
$container->bind('My\Service', function($container) { | |
return new My\Service($container->make('My\AnotherService')); | |
}); |
This file contains 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 App\Http\Controllers; | |
use App\User; | |
use App\Http\Controllers\Controller; | |
class MyController extends Controller | |
{ | |
protected $myService; |
This file contains 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 | |
$container->singleton('Facebook\Facebook', function() { | |
return new \Facebook\Facebook([ | |
'app_id' => config('services.facebook.app_id'), | |
'app_secret' => config('services.facebook.app_secret'), | |
'default_graph_version' => 'v2.10', | |
]); | |
}); |
This file contains 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 App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
class MyServiceProvider extends ServiceProvider | |
{ | |
public function register() | |
{ |
This file contains 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 | |
use Bernard\Message\PlainMessage; | |
use Bernard\Producer; | |
use Bernard\QueueFactory\PersistentFactory; | |
use Bernard\Serializer; | |
use Symfony\Component\EventDispatcher\EventDispatcher; | |
//.. create $driver | |
$queueFactory = new PersistentFactory($driver, new Serializer()); |
This file contains 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 | |
use Bernard\Router\SimpleRouter; | |
use Bernard\Consumer; | |
use Symfony\Component\EventDispatcher\EventDispatcher; | |
// .. create driver and a queuefactory | |
$router = new SimpleRouter(); | |
$router->add('SendForgotPasswordEmail', function() { | |
//TODO: here's the logic to sending your email |
This file contains 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 | |
use Bernard\Router\SimpleRouter; | |
use Bernard\Consumer; | |
use Bernard\Queue\RoundRobinQueue; | |
$queues = [ | |
'default', | |
'notifications', | |
'emails' | |
]; |
This file contains 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 | |
use Bernard\Driver\PredisDriver; | |
use Predis\Client; | |
$predis = new Client('tcp://localhost', array( | |
'prefix' => 'bernard:', | |
)); | |
$driver = new PredisDriver($predis); |
OlderNewer