for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Bluz PHP Team
* @link https://github.com/bluzphp/skeleton
*/
use Phinx\Migration\AbstractMigration;
* CreateMediaTable
class ModuleMediaPermissions extends AbstractMigration
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
* Migrate Up.
public function up()
$data = [
[
'roleId' => 2,
'module' => 'media',
'privilege' => 'Management'
],
'privilege' => 'Upload'
'roleId' => 3,
];
$privileges = $this->table('acl_privileges');
$privileges->insert($data)
->save();
}
* Migrate Down.
public function down()
$this->execute('DELETE FROM acl_privileges WHERE module = "media"');
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.