for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Phinx\Migration\AbstractMigration;
class OptionsPermissions 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' => 'options',
'privilege' => 'Management'
],
'module' => 'api',
'privilege' => 'Options/Read'
'privilege' => 'Options/Edit'
];
$privileges = $this->table('acl_privileges');
$privileges->insert($data)
->save();
}
* Migrate Down.
public function down()
$this->execute('DELETE FROM acl_privileges WHERE module = "options"');
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.