Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Clean things up and update to Laravel 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidesu committed Aug 23, 2016
1 parent 4fe0409 commit 2f90fdc
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 419 deletions.
9 changes: 0 additions & 9 deletions .scrutinizer.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Caffeinated Shinobi
===================
[![Laravel 5.1](https://img.shields.io/badge/Laravel-5.1-orange.svg?style=flat-square)](http://laravel.com)
[![Laravel 5.2](https://img.shields.io/badge/Laravel-5.2-orange.svg?style=flat-square)](http://laravel.com)
[![Laravel 5.3](https://img.shields.io/badge/Laravel-5.3-orange.svg?style=flat-square)](http://laravel.com)
[![Source](http://img.shields.io/badge/source-caffeinated/shinobi-blue.svg?style=flat-square)](https://github.com/caffeinated/shinobi)
[![Build Status](http://img.shields.io/travis/caffeinated/shinobi/master.svg?style=flat-square)](https://travis-ci.org/caffeinated/shinobi)
[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://tldrlegal.com/license/mit-license)
Expand Down
15 changes: 6 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@
}
],
"require": {
"php": ">=5.5.9",
"illuminate/database": "5.1.*|5.2.*",
"illuminate/support": "5.1.*|5.2.*",
"illuminate/filesystem": "5.1.*|5.2.*",
"illuminate/config": "5.1.*|5.2.*"
},
"require-dev": {
"mockery/mockery": "~0.9"
"php": ">=5.6.4",
"illuminate/database": "5.3.*",
"illuminate/support": "5.3.*",
"illuminate/filesystem": "5.3.*",
"illuminate/config": "5.3.*"
},
"autoload": {
"psr-4": {
Expand All @@ -26,7 +23,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.0-dev"
"dev-master": "3.0-dev"
}
},
"minimum-stability": "dev"
Expand Down
18 changes: 0 additions & 18 deletions phpunit.xml

This file was deleted.

21 changes: 0 additions & 21 deletions src/ShinobiServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ public function register()

return new \Caffeinated\Shinobi\Shinobi($auth);
});

$this->configureTwig();
}

/**
Expand Down Expand Up @@ -84,23 +82,4 @@ public function provides()
{
return ['shinobi'];
}

/**
* Configure Twig
*
* Registers the necessary Caffeinated Shinobi tags with Twig;
* only if Twig is set as the template engine.
*
* @return null
*/
protected function configureTwig()
{
$engine = $this->app['config']->get('themes.engine');

if ($engine == 'twig') {
$this->app['config']->push('sapling.tags', 'Caffeinated\Shinobi\Twig\TokenParser\Twig_TokenParser_Can');
$this->app['config']->push('sapling.tags', 'Caffeinated\Shinobi\Twig\TokenParser\Twig_TokenParser_CanAtLeast');
$this->app['config']->push('sapling.tags', 'Caffeinated\Shinobi\Twig\TokenParser\Twig_TokenParser_Role');
}
}
}
51 changes: 0 additions & 51 deletions src/Twig/Node/Twig_Node_Can.php

This file was deleted.

51 changes: 0 additions & 51 deletions src/Twig/Node/Twig_Node_CanAtLeast.php

This file was deleted.

51 changes: 0 additions & 51 deletions src/Twig/Node/Twig_Node_Role.php

This file was deleted.

66 changes: 0 additions & 66 deletions src/Twig/TokenParser/Twig_TokenParser_Can.php

This file was deleted.

Loading

0 comments on commit 2f90fdc

Please sign in to comment.