Skip to content

Commit

Permalink
Formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KorvinSzanto committed Mar 5, 2024
1 parent 827d2fb commit b785bbd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 23 deletions.
24 changes: 11 additions & 13 deletions public/application/bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,46 +12,44 @@
* ## Set a theme by route:
*
* $app->make('\Concrete\Core\Page\Theme\ThemeRouteCollection')
* ->setThemeByRoute('/login', 'greek_yogurt');
*
* ->setThemeByRoute('/login', 'greek_yogurt');
*
* ## Register a class override.
*
* $app->bind('helper/feed', function() {
* return new \Application\Core\CustomFeedHelper();
* return new \Application\Core\CustomFeedHelper();
* });
*
* $app->bind('\Concrete\Attribute\Boolean\Controller', function($app, $params) {
* return new \Application\Attribute\Boolean\Controller($params[0]);
* return new \Application\Attribute\Boolean\Controller($params[0]);
* });
*
* ## Register Events.
*
* Events::addListener('on_page_view', function($event) {
* $page = $event->getPageObject();
* $page = $event->getPageObject();
* });
*
*
* ## Register some custom MVC Routes
*
* Route::register('/test', function() {
* print 'This is a contrived example.';
* print 'This is a contrived example.';
* });
*
* Route::register('/custom/view', '\My\Custom\Controller::view');
* Route::register('/custom/add', '\My\Custom\Controller::add');
*
* ## Pass some route parameters
*
* Route::register('/test/{foo}/{bar}', function($foo, $bar) {
* print 'Here is foo: ' . $foo . ' and bar: ' . $bar;
* Route::register('/test/{foo}/{bar}', function ($foo, $bar) {
* echo 'Here is foo: ' . $foo . ' and bar: ' . $bar;
* });
*
*
* ## Override an Asset
*
* use \Concrete\Core\Asset\AssetList;
* AssetList::getInstance()
* \Concrete\Core\Asset\AssetList::getInstance()
* ->getAsset('javascript', 'jquery')
* ->setAssetURL('/path/to/new/jquery.js');
*
Expand All @@ -61,9 +59,9 @@
* use \Concrete\Core\Asset\Asset;
* $al = AssetList::getInstance();
* $al->register(
* 'javascript', 'jquery', 'path/to/new/jquery.js',
* array('version' => '2.0', 'position' => Asset::ASSET_POSITION_HEADER, 'minify' => false, 'combine' => false)
* );
* 'javascript', 'jquery', 'path/to/new/jquery.js',
* ['version' => '2.0', 'position' => Asset::ASSET_POSITION_HEADER, 'minify' => false, 'combine' => false]
* );
*
* ----------------------------------------------------------------------------
*/
18 changes: 8 additions & 10 deletions public/application/bootstrap/start.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@
* Detect the environment based on the hostname of the server
* ----------------------------------------------------------------------------
*/
$app->detectEnvironment(
array(
'local' => array(
'hostname',
),
'production' => array(
'live.site',
),
)
);
$app->detectEnvironment([
'local' => [
'hostname',
],
'production' => [
'live.site',
],
]);

return $app;

0 comments on commit b785bbd

Please sign in to comment.