Skip to content

Commit

Permalink
for Laravel5 recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
ytake committed Apr 5, 2015
1 parent 2d63a68 commit b4b6a3d
Show file tree
Hide file tree
Showing 325 changed files with 149 additions and 15,514 deletions.
4 changes: 2 additions & 2 deletions app/Console/Commands/AddRecipeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function __construct(
*/
public function fire()
{
$path = \Config::get('recipe.document_path');
$path = config('recipe.document_path');
$categories = scandir($path);
foreach($categories as $directory) {

Expand Down Expand Up @@ -230,4 +230,4 @@ protected function addTags($recipeId, $string = '-')
}
}
}
}
}
3 changes: 1 addition & 2 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('inspire')
->hourly();

}

}
2 changes: 1 addition & 1 deletion app/Extend/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ public static function hal(Hal $data, $status = 200, array $header = [])
$hal = new HalRender($data);
return $hal->render($data, $status, $header);
}
}
}
7 changes: 4 additions & 3 deletions app/Http/Controllers/Api/RecipeController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
namespace App\Http\Controllers\Api;

use App\Extend\Response;
use Nocarrier\Hal;
use App\Http\Controllers\Controller;
use App\Repositories\RecipeRepositoryInterface;
Expand All @@ -13,7 +14,7 @@
* Class RecipeController
* @package App\Controllers
* @author yuuki.takezawa<yuuki.takezawa@comnect.jp.net>
* @Resource("api/v1/recipes", only={"index","show"})
* @Resource("api/v1/recipe", only={"index","show"})
*/
class RecipeController extends Controller
{
Expand Down Expand Up @@ -119,11 +120,11 @@ public function render($array = null, $format = 'json')
switch($format)
{
case "hal":
return \Response::hal($array);
return Response::hal($array);
break;
default:
return \Response::json($array);
break;
}
}
}
}
4 changes: 0 additions & 4 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ public function register()
$this->app->bindShared('markdown', function ($app) {
return new \App\Presenter\Markdown(new \App\Presenter\Parsedown, $app->make("App\Repositories\RecipeRepositoryInterface"));
});

Paginator::presenter(function(){
// return new MaterializePaginator();
});
}

}
27 changes: 27 additions & 0 deletions app/Providers/HogeProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class HogeProvider extends ServiceProvider {

/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
//
}

/**
* Register the application services.
*
* @return void
*/
public function register()
{
//
}

}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"zendframework/zend-feed": "2.*",
"zendframework/zend-servicemanager": "2.*",
"zendframework/zend-http": "2.*",
"erusev/parsedown": "1.*",
"erusev/parsedown-extra": "*",
"laravelcollective/annotations": "~5.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"phpunit/phpunit": "4.*",
"phpspec/phpspec": "~2.1",
"mockery/mockery": "0.*",
"barryvdh/laravel-ide-helper": "2.*",
Expand Down
46 changes: 45 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions docs/recipes/app/00-about.md

This file was deleted.

67 changes: 0 additions & 67 deletions docs/recipes/app/abort.md

This file was deleted.

37 changes: 0 additions & 37 deletions docs/recipes/app/after.md

This file was deleted.

43 changes: 0 additions & 43 deletions docs/recipes/app/before.md

This file was deleted.

63 changes: 0 additions & 63 deletions docs/recipes/app/bind.md

This file was deleted.

Loading

0 comments on commit b4b6a3d

Please sign in to comment.