src/Anonym/Html/Form/BuildCsrfField.php
public function createCsrfField()
    {
        $fieldName = Config::get('security.csrf.field_name');

        $input = new Input($this->form->expression('input'), [
            'name' => $fieldName,
            'value' => $this->createToken(),
            'type' => 'hidden'
        ]);

        return $input->execute();
    }
public function createCsrfField()
    {
        $fieldName = Config::get('security.csrf.field_name');

        $input = new Input($this->form->expression('input'), [
            'name' => $fieldName,
            'value' => $this->createToken(),
            'type' => 'hidden'
        ]);

        return $input->execute();
    }
public function createCsrfField ( ) { $ fieldName = Config :: get ( 'security.csrf.field_name' ) ; $ input = new Input ( $ this -> form -> expression ( 'input' ) , [ 'name' => $ fieldName , 'value' => $ this -> createToken ( ) , 'type' => 'hidden' ] ) ; return $ input -> execute ( ) ; }
create csrf token field

@return mixed
create csrf token field