authserver/testCAS/app/Providers/AppServiceProvider.php
changeset 8 5a0cbbe0922a
parent 0 1afc9d2ab94d
equal deleted inserted replaced
7:1a3fa80225b2 8:5a0cbbe0922a
     1 <?php namespace TestCAS\Providers;
     1 <?php namespace TestCAS\Providers;
     2 
     2 
     3 use Illuminate\Support\ServiceProvider;
     3 use Illuminate\Support\ServiceProvider;
       
     4 use Cas;
       
     5 use phpCAS;
     4 
     6 
     5 class AppServiceProvider extends ServiceProvider
     7 class AppServiceProvider extends ServiceProvider
     6 {
     8 {
     7     /**
     9     /**
     8      * Bootstrap any application services.
    10      * Bootstrap any application services.
     9      *
    11      *
    10      * @return void
    12      * @return void
    11      */
    13      */
    12     public function boot()
    14     public function boot()
    13     {
    15     {
    14         //
    16         Cas::connection();
       
    17         phpCAS::setExtraCurlOption(CURLOPT_SSL_VERIFYHOST, 0);
       
    18         phpCAS::setFixedCallbackURL("https://homestead.app/pgtcallback");
       
    19         phpCAS::setPGTStorageFile(env("TICKET_STORAGE_PATH"));
    15     }
    20     }
    16 
    21 
    17     /**
    22     /**
    18      * Register any application services.
    23      * Register any application services.
    19      *
    24      *
    20      * @return void
    25      * @return void
    21      */
    26      */
    22     public function register()
    27     public function register()
    23     {
    28     {
    24         //
    29 
    25     }
    30     }
    26 }
    31 }