src/Mcfedr/AwsPushBundle/Service/Topics.php
public function createTopic(string $name): string
    {
        $res = $this->sns->createTopic(
            [
                'Name' => $name,
            ]
        );

        return $res['TopicArn'];
    }
public function createTopic(string $name): string
    {
        $res = $this->sns->createTopic(
            [
                'Name' => $name,
            ]
        );

        return $res['TopicArn'];
    }
public function createTopic ( string $ name ) : string { $ res = $ this -> sns -> createTopic ( [ 'Name' => $ name , ] ) ; return $ res [ 'TopicArn' ] ; }
Create a topic.

@param string $name Topic name

@return string The topic ARN

@deprecated use SnsClient directly to subscribe
Create a topic .