Merge pull request #505 from FiloSpaTeam/master

Laravel: Bug fix for Laravel snippet
This commit is contained in:
Holger Rapp 2015-01-15 07:53:49 +01:00
commit a6db63d83f

View File

@ -57,7 +57,7 @@ class $2 extends ServiceProvider {
public function register() { public function register() {
$this->app->bind('${4}Service', function ($app) { $this->app->bind('${4}Service', function ($app) {
return new ${5}( return new ${5}(
$app->make('Repositories\\${6}Interface'), $app->make('Repositories\\${6}Interface')
); );
}); });
} }
@ -74,7 +74,7 @@ snippet l_rsp "Laravel service provider for repository" b
* \date `!v strftime('%d-%m-%y')` * \date `!v strftime('%d-%m-%y')`
*/ */
namespace $4; namespace $2;
use Entities\\$1; use Entities\\$1;
use $2\\$1Repository; use $2\\$1Repository;
@ -229,7 +229,7 @@ class $2 {
/*! /*!
* \fn __construct * \fn __construct
*/ */
public function __construct($4 $repo) { public function __construct($5 $repo) {
$this->$6 = $repo; $this->$6 = $repo;
} }
} }