From 83be78b087f51e60eebd2e08dbac5af34874aa9f Mon Sep 17 00:00:00 2001 From: Claudio Maradonna Date: Wed, 14 Jan 2015 22:35:12 +0100 Subject: [PATCH 1/3] Bug fix with Laravel snippet --- UltiSnips/php_laravel.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UltiSnips/php_laravel.snippets b/UltiSnips/php_laravel.snippets index 8890637..79018bc 100644 --- a/UltiSnips/php_laravel.snippets +++ b/UltiSnips/php_laravel.snippets @@ -74,7 +74,7 @@ snippet l_rsp "Laravel service provider for repository" b * \date `!v strftime('%d-%m-%y')` */ -namespace $4; +namespace $2; use Entities\\$1; use $2\\$1Repository; From b51b2766fdd8f901a4bc576d44c74911a3c62621 Mon Sep 17 00:00:00 2001 From: Claudio Maradonna Date: Wed, 14 Jan 2015 22:42:30 +0100 Subject: [PATCH 2/3] Another bug fix for Laravel Snippet --- UltiSnips/php_laravel.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UltiSnips/php_laravel.snippets b/UltiSnips/php_laravel.snippets index 79018bc..33df427 100644 --- a/UltiSnips/php_laravel.snippets +++ b/UltiSnips/php_laravel.snippets @@ -229,7 +229,7 @@ class $2 { /*! * \fn __construct */ - public function __construct($4 $repo) { + public function __construct($5 $repo) { $this->$6 = $repo; } } From 634efcfc0ab7e34c1d5131fd44ffbb03fd868a04 Mon Sep 17 00:00:00 2001 From: Claudio Maradonna Date: Wed, 14 Jan 2015 22:44:54 +0100 Subject: [PATCH 3/3] Another bug fix for Laravel Snippet --- UltiSnips/php_laravel.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UltiSnips/php_laravel.snippets b/UltiSnips/php_laravel.snippets index 33df427..9f817a8 100644 --- a/UltiSnips/php_laravel.snippets +++ b/UltiSnips/php_laravel.snippets @@ -57,7 +57,7 @@ class $2 extends ServiceProvider { public function register() { $this->app->bind('${4}Service', function ($app) { return new ${5}( - $app->make('Repositories\\${6}Interface'), + $app->make('Repositories\\${6}Interface') ); }); }