-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
045f9f7
commit dc2a835
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Imagify\User; | ||
|
||
use Imagify\Dependencies\League\Container\ServiceProvider\AbstractServiceProvider; | ||
|
||
/** | ||
* Service provider for Picture display | ||
*/ | ||
class ServiceProvider extends AbstractServiceProvider { | ||
/** | ||
* Services provided by this provider | ||
* | ||
* @var array | ||
*/ | ||
protected $provides = [ | ||
'user', | ||
]; | ||
|
||
/** | ||
* Registers the provided classes | ||
* | ||
* @return void | ||
*/ | ||
public function register() { | ||
$this->getContainer()->add( 'user', User::class ); | ||
} | ||
|
||
/** | ||
* Returns the subscribers array | ||
* | ||
* @return array | ||
*/ | ||
public function get_subscribers() { | ||
return []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters