public function boot()
 {
     $this->package('aamant/message');
     // if (! in_array('Aamant\Message\MessageInterface', class_implements('User') )) {
     // 	throw new Exception('The User class must be implement Aamant\Message\MessageInterface');
     // }
     include __DIR__ . '/routes.php';
     \View::composers(array('\\Aamant\\Message\\Composer\\Receive' => 'message::partials.receive', '\\Aamant\\Message\\Composer\\Mailbox\\User' => 'message::mailbox.partials.user', '\\Aamant\\Message\\Composer\\Mailbox\\Message' => array('message::mailbox.partials.message'), '\\Aamant\\Message\\Composer\\Message\\Message' => 'message::partials.message'));
 }
Example #2
0
 /**
  * Bootstrap the application services.
  *
  * @return void
  */
 public function boot()
 {
     \View::composers(['Owl\\Http\\ViewComposers\\UserComposer' => '*', 'Owl\\Http\\ViewComposers\\MailNotifySettingComposer' => ['user.edit']]);
 }
Example #3
0
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/', 'WelcomeController@index');
Route::get('home', 'HomeController@index');
Route::get('admin', 'Admin\\AdminController@index');
Route::get('admin/create/table', 'Admin\\AdminController@createTable');
Route::get('admin/table/show/{id}/', 'Admin\\AdminController@showTable');
Route::get('admin/table/add/{id}/', 'Admin\\AdminController@addFieldTable');
Route::get('admin/table/edit/{idTable}/{idField}', 'Admin\\AdminController@editFieldTable');
Route::get('admin/parsers/{id}/', 'Admin\\AdminController@showTableParsers');
Route::get('admin/parsers/add/{id}/', 'Admin\\AdminController@addParsers');
Route::get('admin/parsers/edit/{id}/', 'Admin\\AdminController@editParsers');
Route::post('admin/createfield', 'Admin\\AjaxController@createField');
Route::post('admin/checkParserConf', 'Admin\\AjaxController@checkParserConf');
Route::post('admin/create_table', 'Admin\\AjaxController@createNewTable');
Route::post('admin/save_parser', 'Admin\\AjaxController@saveParser');
/*
View::composers([
  'AdminComposer' => ['welcome']
]);
*/
//View::composer('welcome', 'AdminComposer');
\View::composers(['App\\Http\\Composers\\admin\\AdminComposer' => ['admin.layout']]);
Route::get('/foo', function () {
    $this->app['Illuminate\\Contracts\\Console\\Kernel']->call('make:controller', ['name' => 'foo']);
    //
});
Route::controllers(['auth' => 'Auth\\AuthController', 'password' => 'Auth\\PasswordController']);
<?php

use FloatingPoint\Grapevine\View\Composers;
// Define required composers.
View::composers([Composers\CategoryListComposer::class => ['layouts.fullpage'], Composers\CategorySelectComposer::class => ['category.form', 'discussion.form']]);
Example #5
0
<?php

use Tectonic\Shift\Library\Composers\ApplicationComposer;
use Tectonic\Shift\Library\Composers\AssetsComposer;
use Tectonic\Shift\Library\Composers\LanguagesComposer;
use Tectonic\Shift\Library\Composers\LocaleComposer;
use Tectonic\Shift\Library\Composers\LayoutsInstallationComposer;
use Tectonic\Shift\Library\Composers\MainMenuComposer;
View::composers([ApplicationComposer::class => ['shift::layouts.fullpage'], AssetsComposer::class => ['shift::layouts.fullpage'], LanguagesComposer::class => ['shift::accounts.new', 'shift::accounts.edit'], LocaleComposer::class => ['shift::layouts.fullpage', 'shift::layouts.pjax'], LayoutsInstallationComposer::class => ['shift::layouts.installation'], MainMenuComposer::class => ['shift::layouts.fullpage']]);
Example #6
0
<?php

/**
 * Register View Composers and their associated views
 */
View::composers(array('Sentinel\\Composers\\SuspendComposer' => 'Sentinel::users.suspend'));