Skip to content
This repository has been archived by the owner on Jan 18, 2018. It is now read-only.

Commit

Permalink
PSR-4 autoloading
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Feb 8, 2014
1 parent ca82b03 commit 45c2990
Show file tree
Hide file tree
Showing 27 changed files with 51 additions and 19 deletions.
18 changes: 9 additions & 9 deletions app/config/packages/graham-campbell/credentials/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

/*
|--------------------------------------------------------------------------
| Require Email Verification On Registration
| Email Verification On Registration
|--------------------------------------------------------------------------
|
| This defines if public registration requires email activation.
Expand All @@ -60,43 +60,43 @@
| Login Page
|--------------------------------------------------------------------------
|
| This specifies the view that is used for the login page.
| This defines the view that is used for the login page.
|
*/

'login' => 'credentials::account.login',
'login' => 'graham-campbell/credentials::account.login',

/*
|--------------------------------------------------------------------------
| Registration Page
|--------------------------------------------------------------------------
|
| This specifies the view that is used for the registration page.
| This defines the view that is used for the registration page.
|
*/

'registration' => 'credentials::account.register',
'registration' => 'graham-campbell/credentials::account.register',

/*
|--------------------------------------------------------------------------
| Forgot Password Page
|--------------------------------------------------------------------------
|
| This specifies the view that is used for the forgot password page.
| This defines the view that is used for the forgot password page.
|
*/

'reset' => 'credentials::account.reset',
'reset' => 'graham-campbell/credentials::account.reset',

/*
|--------------------------------------------------------------------------
| Profile Password Page
|--------------------------------------------------------------------------
|
| This specifies the view that is used for the profile page.
| This defines the view that is used for the profile page.
|
*/

'profile' => 'credentials::account.profile'
'profile' => 'graham-campbell/credentials::account.profile'

);
4 changes: 2 additions & 2 deletions app/config/packages/graham-campbell/htmlmin/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
| compiled. These optimizations have little impact on php processing time
| as the optimizations are only applied once and are cached. This package
| will do nothing by default to allow it to be used without minifying
| pages automatically
| pages automatically.
|
| Default: false
|
Expand All @@ -42,7 +42,7 @@
| are served. These optimizations have greater impact on php processing
| time as the optimizations are applied on every request. This package
| will do nothing by default to allow it to be used without minifying
| pages automatically
| pages automatically.
|
| Default: false
|
Expand Down
2 changes: 1 addition & 1 deletion app/config/packages/graham-campbell/navigation/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
|
| This option specifies the view to use.
|
| Default: 'navigation::bootstrap'
| Default: 'graham-campbell/navigation::bootstrap'
|
*/

Expand Down
32 changes: 32 additions & 0 deletions app/config/packages/graham-campbell/throttle/config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

/**
* This file is part of Laravel Throttle by Graham Campbell.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

return array(

/*
|--------------------------------------------------------------------------
| Throttler Class
|--------------------------------------------------------------------------
|
| This defines the throttler class to be used.
|
| Default: 'GrahamCampbell\Throttle\Throttlers\CacheThrottler'
|
*/

'throttler' => 'GrahamCampbell\Throttle\Throttlers\CacheThrottler'

);
2 changes: 1 addition & 1 deletion app/views/partials/navigation.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
Login
</a>
</li>
@if (Config::get('credentials::regallowed'))
@if (Config::get('graham-campbell/credentials::regallowed'))
<li {{ (Request::is('account/register') ? 'class="active"' : '') }}>
<a href="{{ URL::route('account.register') }}">
Register
Expand Down
2 changes: 1 addition & 1 deletion app/views/posts/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<br>
@else
<p>
@if (Config::get('credentials::regallowed'))
@if (Config::get('graham-campbell/credentials::regallowed'))
<strong>Please <a href="{{ URL::route('account.login') }}">login</a> or <a href="{{ URL::route('account.register') }}">register</a> to post a comment.</strong>
@else
<strong>Please <a href="{{ URL::route('account.login') }}">login</a> to post a comment.</strong>
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
"app/database/migrations",
"app/database/seeds"
],
"psr-0": {
"GrahamCampbell\\BootstrapCMS": "src/",
"GrahamCampbell\\Tests\\BootstrapCMS": "tests/"
"psr-4": {
"GrahamCampbell\\BootstrapCMS\\": "src/",
"GrahamCampbell\\Tests\\BootstrapCMS\\": "tests/"
}
},
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class BootstrapCMSServiceProvider extends ServiceProvider
*/
public function boot()
{
$this->package('graham-campbell/bootstrap-cms');
$this->package('graham-campbell/bootstrap-cms', 'graham-campbell/bootstrap-cms', __DIR__);
}

/**
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function createApplication()
{
$unitTesting = true;
$testEnvironment = 'testing';
return require __DIR__.'/../../../../bootstrap/start.php';
return require __DIR__.'/../bootstrap/start.php';
}

/**
Expand Down
File renamed without changes.

0 comments on commit 45c2990

Please sign in to comment.