Skip to content

Commit

Permalink
Add cache facade (Ref #838)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Nov 13, 2018
1 parent 116453d commit fb0292f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Added `ControllerTestCase` special test case to help testing controllers
- Improved overall test coverage and added coverage config to `phpunit.xml`
- Added code style config (`.php_cs`) and instructions for PHP-CS-Fixer in Readme
- Add cache facade (Ref [#838](https://github.com/userfrosting/UserFrosting/issues/838))

### Changed
- Moved `migrate` Bakery command and sub-commands to the `Core` sprinkle
Expand Down
29 changes: 29 additions & 0 deletions app/sprinkles/core/src/Facades/Cache.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php
/**
* UserFrosting (http://www.userfrosting.com)
*
* @link https://github.com/userfrosting/UserFrosting
* @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License)
*/

namespace UserFrosting\Sprinkle\Core\Facades;

use UserFrosting\System\Facade;

/**
* Implements facade for the "cache" service
*
* @author Louis Charette
*/
class Cache extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'cache';
}
}

0 comments on commit fb0292f

Please sign in to comment.