Skip to content

Instantly share code, notes, and snippets.

@cismous
Last active August 29, 2015 14:07
Show Gist options
  • Save cismous/6ef3b25a21c2fefc7c1b to your computer and use it in GitHub Desktop.
Save cismous/6ef3b25a21c2fefc7c1b to your computer and use it in GitHub Desktop.
add namespace support to taobao api for yii2
#!/bin/bash
#查找包含class的这一行,然后在上面插入三行,1.空行; 2.namespace Taobao\Top\Request; 3.空行.
sed -i '/class/i\\nnamespace Taobao\\Top\\Request;\n' api_path/*.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment