Skip to content

Commit

Permalink
remove extra code
Browse files Browse the repository at this point in the history
  • Loading branch information
Tabrisrp committed Sep 30, 2024
1 parent 99d1352 commit dd793bc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions classes/Admin/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class ServiceProvider extends AbstractServiceProvider {
*/
protected $provides = [
'admin_bar',
'user',
];

/**
Expand All @@ -35,7 +34,6 @@ class ServiceProvider extends AbstractServiceProvider {
* @return void
*/
public function register() {
$this->getContainer()->add( 'user', User::class );
$this->getContainer()->share( 'admin_bar', AdminBar::class )
->addArgument( $this->getContainer()->get( 'user' ) );
}
Expand Down

0 comments on commit dd793bc

Please sign in to comment.