- First install a clean copy of PyroCMS Beta3 for reference.
- Next update the composer.json file of your B2 install with that of the B3 install.
- Mark your B2 install as
INSTALLED=false
. composer update
to bring in all the new goodies.- Add
placeholder
,warning
,instructions
tostreams_fields_translations
table. - Mark all streams in streams_streams as
trashable=1
according to fresh install's table. - Add
deleted_at (DATETIME)
to all stream entry tables where the stream is marked trashable above. - Rename the stream
groups
tomenus
in streams_streams. - Rename the table
navigation_groups
tonavigation_menus
. - Rename the column
group_id
tomenu_id
in navigation_links.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ProductTableBuilder extends TableBuilder | |
{ | |
protected $filters = [ | |
'name', | |
'status' | |
]; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! Disable selinux first. | |
cd / | |
find . -print0 | xargs -0 -n 1 setfattr -h -x security.selinux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ProductFormBuilder extends FormBuilderBuilder | |
{ | |
// Relax.. Pyro has automated this for you. Override as needed. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class StoreModule extends Module | |
{ | |
protected $sections = [ | |
'products' => [ | |
'buttons' => [ | |
'new_product' | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ProductsModuleServiceProvider extends AddonServiceProvider | |
{ | |
} |
Moved to our SATIS server: https://packages.pyrocms.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get new MAC address. | |
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/./0/2; s/.$//' | |
# Assign new MAC address. | |
sudo ifconfig en0 ether {$MAC} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$composerProcess = new Process('THE COMMAND'); | |
$composerProcess->run(function ($type, $buffer) { | |
// $type is sketchy so use preg_match on the string to color / handle errors. | |
echo $buffer; | |
}); |