How to pass argument to add_action while the method is inside a class?

Here’s another example on how you could implement the add_action:

$type="my_sample_type";

add_action(
    'init',
    function() use ( $type ) {
        MyClass::make( $type );
    }
);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)