Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.

Commit

Permalink
Update for Laravel 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidesu committed Nov 1, 2016
1 parent a722731 commit b2b93c0
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 93 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Shea Lewis
Copyright (c) 2016 Shea Lewis

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Caffeinated SEO
===============
[![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/SEO-blue.svg?style=flat-square)](https://github.com/caffeinated/SEO)
[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://tldrlegal.com/license/mit-license)

Expand All @@ -16,7 +15,7 @@ Quick Installation
Begin by installing the package through Composer.

```
composer require caffeinated/seo=~2.0
composer require caffeinated/seo
```

Once this operation is complete, simply add both the service provider and facade classes to your project's `config/app.php` file:
Expand All @@ -28,7 +27,7 @@ Caffeinated\SEO\SEOServiceProvider::class,

#### Facade
```php
'Meta' => Caffeinated\SEO\Facades\Metadata::class,
'SEOMeta' => Caffeinated\SEO\Facades\Metadata::class,
```

And that's it! With your coffee in reach, start building up your SEO!
11 changes: 3 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,13 @@
}
],
"require": {
"php": ">=5.5.9",
"illuminate/support": "5.1.*|5.2.*",
"illuminate/http": "5.1.*|5.2.*"
"php": ">=5.6.4",
"illuminate/support": "5.3.*",
"illuminate/config": "5.3.*"
},
"autoload": {
"psr-4": {
"Caffeinated\\SEO\\": "src"
}
},
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
}
}
}
18 changes: 0 additions & 18 deletions phpunit.xml

This file was deleted.

1 change: 1 addition & 0 deletions src/Handlers/Metadata.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Caffeinated\SEO\Handlers;

use Illuminate\Http\Request;
Expand Down
30 changes: 0 additions & 30 deletions src/SEOServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,42 +29,12 @@ public function boot()
* @return void
*/
public function register()
{
$this->registerServices();

$this->configureSapling();
}

/**
* Register the package services.
*
* @return void
*/
protected function registerServices()
{
$this->app->singleton('caffeinated.seo.metadata', function($app) {
return new Metadata($app['request']);
});
}

/**
* Configure Sapling
*
* Configures Sapling (Twig) extensions if the Sapling package
* is found to be installed.
*
* @return void
*/
protected function configureSapling()
{
if ($this->app['config']->has('sapling')) {
$this->app['config']->push(
'sapling.extensions',
'Caffeinated\SEO\Twig\Extensions\Metadata'
);
}
}

/**
* Get the services provided by the provider.
*
Expand Down
32 changes: 0 additions & 32 deletions src/Twig/Extensions/Metadata.php

This file was deleted.

0 comments on commit b2b93c0

Please sign in to comment.